<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
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.<br>
The shutdown of the system shall be delayed until my script is
terminated.<br>
<br>
I could not find a suitable configuration. The "templates" in
/lib/systemd did not help.<br>
<br>
I've an OpenSuSE 12.1 system with latest patches installed.<br>
<br>
Here is my configuration:<br>
<br>
<blockquote><font face="Courier New, Courier, monospace">[Unit]</font><br>
<font face="Courier New, Courier, monospace">Description=my
shutdown service</font><br>
<br>
<font face="Courier New, Courier, monospace">Before=shutdown.service
halt.service</font><br>
<font face="Courier New, Courier, monospace">DefaultDependencies=no</font><br>
<br>
<font face="Courier New, Courier, monospace">[Service]</font><br>
<font face="Courier New, Courier, monospace">ExecStart=/etc/init.d/my_shutdown
start</font><br>
<font face="Courier New, Courier, monospace">Type=oneshot</font><br>
<font face="Courier New, Courier, monospace">RemainAfterExit=true</font><br>
<br>
<font face="Courier New, Courier, monospace">[Install]</font><br>
<font face="Courier New, Courier, monospace">WantedBy=shutdown.target</font><br>
<br>
<br>
</blockquote>
Can please somebody point me to the right configuration?<br>
<br>
Thanks for your help.<br>
<br>
Regards<br>
Burkhard<br>
</body>
</html>