[systemd-devel] Script in /usr/lib/systemd/system-shutdown not executed on init 6

Benoit SCHMID Benoit.Schmid at unige.ch
Wed Nov 23 07:18:49 UTC 2016


Hello,

I have added a simple script in /usr/lib/systemd/system-shutdown.
The scripts echo a message (on stdout) and create a file in /var/tmp.
I manually tested the script before rebooting to ensure that it works fine.

After running init 6, there is no message in journactl -b -1 and the
file has not been created.

1. How can I ensure that it has not been started after running init 6?

2. Why has it not been started?

3. If it should have been started,
how can I diagnose/debug why it has not been started?

Thanks in advance for your help.

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

     Benoit Schmid              Tel: (+41-22) 379-7209

     University of Geneva - Information Technology Division

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ 



More information about the systemd-devel mailing list