Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Mantas Mikulėnas
On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated. Out of curiosity, what does your unit do? Is

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Andrei Borzenkov
В Thu, 27 Nov 2014 14:17:49 +0200 Mantas Mikulėnas graw...@gmail.com пишет: On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed,

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Nikolaus Rath
Mantas Mikulėnas graw...@gmail.com writes: On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated.

Re: [systemd-devel] How to start unit before everything else on shutdown

2014-11-27 Thread Nikolaus Rath
Mantas Mikulėnas graw...@gmail.com writes: On Wed, Nov 26, 2014 at 11:06 PM, Nikolaus Rath nikol...@rath.org wrote: Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated.

[systemd-devel] How to start unit before everything else on shutdown

2014-11-26 Thread Nikolaus Rath
Hello, I'd like to start a unit on system shutdown and reboot, but do so immediately after the systemctl reboot command is executed, before any other units are terminated. Is there a way to do that? At first I thought that Before=shutdown.target might work, but thinking about it, I think this