On 02.12.2012 22:04, Salvo Tomaselli wrote:
> 
>> if start-stop-daemon -K --retry=TERM/30/KILL/5 -o -q -p $PIDFILE -x
>> $DAEMON -u $USER; then
> Okay, it seems to be working now, but also seemed to be working in general, 
> the problem doesn't occur every time...

that's the nature of race conditions :-)

Some explanation why you see different behaviour between sysvinit and
systemd:
systemd internally translates "restart" to "stop + start", i.e. it calls
/etc/init.d/foo stop && /etc/init.d/foo start.
That's why the "sleep 1" hack is only active under sysvinit.
I bet, if you removed the "sleep 1" in restart), you'd run into the same
problem under sysvinit.

In the end, those are just bugs in the sysv init scripts which are
papered over by sprinkling a sleep here and there.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to