MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: PID file patch for LambdaMOO-1.8.0p4
In message <4mrovi$rbh@terminus.zytor.com> , you wrote:
> A very small patch for LambdaMOO-1.8.0p4 which enables writing a file
> containing the process ID of the LambdaMOO process. The process ID is
> needed to send signals, e.g.
An even smaller patch. Find your restart script (either the sh or csh
one, it doesn't matter). Go to the line that invokes `moo':
nohup ./moo $1.db $1.db.new $2 >>& $1.log &
and add another line:
echo $! > $1.pid
Whenever you put something in the background with `&', the shell saves
the pid of the command and you can access it with `$!'.
--Ben
References:
Home |
Subject Index |
Thread Index