On 8/11/19 12:01 PM, Adam Borowski wrote: > restart|force-reload) > log_daemon_msg "Restarting $DESC" > do_stop > sleep 1 > do_start > log_end_msg $? > ;; > > Yes, this particular case might fail on a pathologically loaded box or with a > very slow chip, but I don't know of a way to ask firmware if something is > still winding down, thus what we ship is probably still sanest. yes, for firmware this makes sense, but I've also seen various sysv scripts where people tried to guess the time a service needs to shutdown, so some random sleep was added instead of handling it in a sane way. This issues are luckily fixed forever with systemd - it just knows, whats going on. -- Bernd Zeimetz Debian GNU/Linux Developer http://bzed.de http://www.debian.org GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F
- Re: init.d scripts and unit files lexical orde... Vincent Bernat
- Re: init.d scripts and unit files lexical orde... Simon Richter
- Re: init.d scripts and unit files lexical orde... Sam Hartman
- Re: init.d scripts and unit files lexical orde... Andrei POPESCU
- Re: init.d scripts and unit files lexical orde... Simon Richter
- Re: Please stop hating on sysvinit (was Re: do... Sam Hartman
- Re: Please stop hating on sysvinit (was Re: do... Marc Haber
- Re: Please stop hating on sysvinit (was Re: do... Vincent Bernat
- Re: Please stop hating on sysvinit (was Re: do... Adam Borowski
- Re: Please stop hating on sysvinit (was Re: do... Don Armstrong
- Re: Please stop hating on sysvinit (was Re: do... Bernd Zeimetz
- Re: Please stop hating on sysvinit (was Re: do... Bjørn Mork
- Re: Please stop hating on sysvinit (was Re: do... Philipp Kern
- Re: Please stop hating on sysvinit (was Re: do... Marc Haber
- Re: Please stop hating on sysvinit (was Re: do... Russ Allbery
- Re: Please stop hating on sysvinit (was Re: do... Ondřej Surý
- Re: Please stop hating on sysvinit, systemd… a... Martin Steigerwald
- Re: do packages depend on lexical order or {daily,weekl... Anthony DeRobertis