Autor: Rainer Weikusat Data: A: dng Assumpte: Re: [DNG]
The show goes on: “su” command replacement merged into systemd on Fedora Rawhide
Tobias Hunger <tobias.hunger@???> writes: > Am 31.08.2015 21:50 schrieb "KatolaZ" <katolaz@???>:
>> The sole fact that you consider anything else than systemd as "a
>> lesser" option[...]
>
> Hi KatolaZ,
>
> there are several inits (plus surrounding code like startup scripts) that
> do not require a hack like that.
It would still need to be determined if the process manager used in this
case actually needs to be aware of the system state or if this is rather
a flaw in the shutdown procedure, ie, it's not shutting down the process
manager but the managed application without informing the process
manager about it.
The fact that "replacement inits" (just like "C string libraries") are
classic 'rites de passage' programming and that their authors usually
conflate them with process managers because that's how sysvinit works
and they know that is still totally unrelated to that.
[...]
> And yes, checking for shutdown in a service is a hack. Things like that are
> a maintenance nightmare in the long run, especially when they start to get
> copied into other services.
"Bad stuff might happen in future!" is a pretty generic, weak reason for
anything: The process manager shouldn't need to be aware of the system
being shut down because it's manageing a process and not the system.