NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How can I stop a script running as "deamon" from rc.d?



> Yes, I can see, that a C-program can set a PID file, and when it dies,
> the PID-file is removed
> automatically.  Can a script set one?  How?
> If I could, I probably must remove the PID-file in my trap-part.  If
> one stays there after a crash,
> i can remove remove it before creating.

command &
echo $! >/var/run/command.pid

                --Steve Bellovin, http://www.cs.columbia.edu/~smb







Home | Main Index | Thread Index | Old Index