[mohaa] mohaa and pid's
Eric Koldeweij
eric at no-sense.net
Fri Aug 22 20:17:36 EDT 2003
Something else that might be useful is to store the pid of the
mohaa_lnxded process. Something like this:
mohaa_lnxded +set net_ip 1.2.3.4 +exec whatever.cfg &
echo $! > mohaa.pid
wait
this will store the pid of the mohaa process in the file mohaa.pid. So
you could kill this particular process by doing
kill `cat mohaa.pid`
If you store the pid's of each mohaa process in a different file you can
finish each of at any time. Oh, the "wait" command will suspend
execution of the script until its hildren (in this case mohaa) is finished.
Hope this helps.
Eric.
Shaun Green wrote:
> Not really sure what the actual purpose of this is but Im trying to
> help someone out. Question asked, Any way to assign a pid to
> multiple mohaa servers under linux? From what i can understand im
> guessing he wants to kill all instance's at the same time for whatever
> reason not really sure.
>
> Could you use the screen command and script to start all the mohaa
> servers and when needed just kill the screen process to end all mohaa
> servers.
More information about the Mohaa
mailing list