[systemd-devel] Springboot and systemd, clean shutdown

Cristian Rodríguez crrodriguez at opensuse.org
Thu Oct 3 19:13:26 UTC 2024


On Wed, Oct 2, 2024 at 3:58 PM Etienne Doms <etienne.doms at gmail.com> wrote:

> Hi,
>
>
> https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#ExecStop=
>
> "Note that it is usually not sufficient to specify a command for this
> setting that only asks the service to terminate (for example, by
> sending some form of termination signal to it), but does not wait for
> it to do so. Since the remaining processes of the services are killed
> according to KillMode= and KillSignal= or RestartKillSignal= as
> described above immediately after the command exited, this may not
> result in a clean stop."
>
> Maybe.just maybe this behaviour can be revised somewhat now pidfds
exist..we can know for sure what's the pidfd of the main process systemd
started,
pidfds can be pooled and pid reuse is not possible with them..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241003/adb96011/attachment.htm>


More information about the systemd-devel mailing list