[systemd-devel] Reliable way to finish system units before termination through systemd shutdown / reboot routines

Lennart Poettering lennart at poettering.net
Thu Aug 31 14:05:36 UTC 2017


On Di, 15.08.17 14:25, Reiner Wenke (reiner.wenke at nxp.com) wrote:

> Hello,
> 
> I have running some virtualbox instances under systemd control and use vboxautostart-service
> for starting and stopping (saving). This is running on Centos7
> As long as I use systemctl stop vboxautostart-service for termination, everything is fine, 
> but it takes some time for completion.
> 
> If I shutdown or reboot the host system, then I get a premature kill of all running instances,
> most likely through the systemd reboot / shutdown routines .
> I tried some configuration changes, but nothing worked for me.
> 
> Is there a reliable way to avoid this behavior?

At shutdown systemd will terminate all services in a similar way as
"systemctl stop" does it. I don#t really know vbox though, maybe they
are not setting everything up correctly there. Consider contacting
your downstream distro or the vbox community for help on this.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list