On Tue, Jul 31, 2012 at 14:34:11 +0200, Daniel Baumann wrote: > > + * Adding sleep during restart in initscript. > > > > Why one second? > > because it sometimes fails to restart if there's no sleep. > > > Is it enough? > > yes. > Based on what? If the system is under load, what guarantees that it won't take more time? > > Is there a proper way instead of sleeping? > > to the best of my knowledge, this is the proper way these days on how do > deal with these sort of things in sysvinit initscripts. > Nope. The proper way is for stop to not return until it's actually stopped. Cheers, Julien
Attachment:
signature.asc
Description: Digital signature