Subject: Re: rc.d
To: Greywolf <greywolf@starwolf.com>
From: Kevin P. Neal <kpneal@pobox.com>
List: tech-userlevel
Date: 03/17/2000 08:07:37
On Fri, Mar 17, 2000 at 12:08:30AM -0800, Greywolf wrote:
> One thing I could see doing was to echo the command to be run to
> /var/run/${command}.cmd, thus resulting in a (.pid, .cmd) pair. If one
> wished to restart, one would kill the pid and then run the command found in
> the .cmd file. A 'stop' would kill the pid and delete the .cmd file.
> A 'start' would, through some magic, arrive at the right command
> and args and run it.
What about programs that have multiple processes which need to be
killed?
Case in point: Infoseek's Ultraseek server.
--
Kevin P. Neal http://www.pobox.com/~kpn/
"You're a slacker if you only give 90% 'cause you are afraid of the \
other 10%." -- Ross Smith Apr 22 1999 2:29am