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

Re: Bug#60979: What /etc/init.d/xxx restart does?



On Thu, Mar 23, 2000 at 06:04:22PM -0600, Zed Pobre wrote:
>     I suggest "static-restart", static in the sense of not changing
> current behaviour.

Wouldn't this work just as well?

/etc/init.d/daemon stop && /etc/init.d/daemon start

IIRC, the former will exit with a nonzero status if there is nothing to
kill.  (Of course, for this to work, people need to be careful when using
the --oknodo option to start-stop-daemon, or the exit status from that
command won't be useful.)

-- 
G. Branden Robinson            |    The key to being a Southern Baptist:
Debian GNU/Linux               |    It ain't a sin if you don't get caught.
branden@ecn.purdue.edu         |    -- Anthony Davidson
roger.ecn.purdue.edu/~branden/ |

Attachment: pgpkqdQQqtajO.pgp
Description: PGP signature


Reply to: