Hello,
I do need a customized shutdown service which performs some clean up tasks, e.g. stopping virtual machines,  before the shutdown service of systemd actually starts.
The shutdown of the system shall be delayed until my script is terminated.

I could not find a suitable configuration. The "templates" in /lib/systemd did not help.

I've an OpenSuSE 12.1 system with latest patches installed.

Here is my configuration:

[Unit]
Description=my shutdown service

Before=shutdown.service halt.service
DefaultDependencies=no

[Service]
ExecStart=/etc/init.d/my_shutdown start
Type=oneshot
RemainAfterExit=true

[Install]
WantedBy=shutdown.target


Can please somebody point me to the right configuration?

Thanks for your help.

Regards
Burkhard
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to