On Sun, Feb 26, 2012 at 4:24 PM, Burkhard Kayser <[email protected]> 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 > [email protected] > http://lists.freedesktop.org/mailman/listinfo/systemd-devel >
This works consistently in my setup: [Unit] DefaultDependencies=no Before=shutdown.target [Service] Type=oneshot ExecStart=script _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
