Hi I tried as well the following configuration. My script shall be started before ANY other service is shut down. Stopping a virtual machine is only one example. Synchronizing data into a truecrypt container another. [Unit] My script is started almost at the end of the shutdown sequence. See var/log/messages below. Feb 28 20:26:54 Linux1 systemd[1]: alsa-store.service: main process exited, code=exited, status=19 On 27/02/12 01:49, Eduardo Tongson wrote: On Sun, Feb 26, 2012 at 4:24 PM, Burkhard Kayser <kayser-b-2...@t-online.de> wrote: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 systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-develThis works consistently in my setup: [Unit] DefaultDependencies=no Before=shutdown.target [Service] Type=oneshot ExecStart=script _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Burkhard Kayser Im Stiegel 9 D-71549 Auenwald Phone: +49 7191 58288 Mobile: +49 160 9136 8972 This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify me by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and I only send and receive emails on the basis that I am not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. |
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel