[Prev][Next][Index][Thread]

# Re: PID file patch for LambdaMOO-1.8.0p4

- Date: Thu, 9 May 1996 11:33:35 PDT
- From:
- Cc: local-moo@terminus.zytor.com, moo-cows@parc.xerox.com
- Content-Type: text
- In-reply-to: Your message of "Wed, 08 May 96 20:32:02 PDT." <4mrovi$rbh@terminus.zytor.com>

    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:

- PID file patch for LambdaMOO-1.8.0p4

- From: hpa@trantor.zytor.com (H. Peter Anvin)

- Prev: PID file patch for LambdaMOO-1.8.0p4
- Next: ping
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index