I've a daemon-like process that starts two subprocesses (and one of the subprocesses starts ~10 others). When I systemctl stop
my process the child subprocesses appear to be 'aggressively' killed by systemctl
- which doesn't give my process a chance to clean up.
How do I get systemctl stop
to quit the aggressive kill and thus to allow my process to orchestrate an orderly clean up?
I tried timeoutSec=30
to no avail.
man systemd.services
andman systemd.kill
? – Beamy