[systemd-devel] [EXT] Recommended shutdown method

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Wed Mar 4 22:03:37 UTC 2020


On 3/4/20 8:48 PM, Jay.Burger at fujitsu.com wrote:
> All,
> 
> I have a debate going on over which is the best way to recommend to
> 
> a development organization how to design a service shutdown. There are two
> 
> camps.
> 
> 1.Use the ExecStop with an additional process that needs to ipc to the 
> services
> 
> main pid and wait for a response.
> 
> 2.Use the SigTerm that systemd sends to the main pid which can use a 
> “quit” flag
> 
> that the main process will use to shutdown.
> 
> I know this is kind of an large issue but now that systemd is more 
> widespread is there
> 
> any momentum in either method? If so could someone point me to examples or
> 
> documentation?

Considering that the SIGTERM method works for more than 40 years now, 
who knows whether systemd will be there in 10 years still? ;-)

> 
> Thanks,
> 
> -Jay
> 
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> 


More information about the systemd-devel mailing list