You are not logged in.

#1 2011-09-07 15:16:09

anonymity
Member
Registered: 2010-09-14
Posts: 1

systemd not run rc.local.shutdown

the problom is that when i reboot or shurdown my system,systemd not run rc.local.shutdown.

here is my /etc/systemd/system/multi-user.target.wants/rc-local.service file
[Unit]
Description=/etc/rc.local Compatibility

[Service]
ExecStart=-/etc/rc.local
ExecStop=-/etc/rc.local.shutdown
TimeoutSec=0
StandardInput=tty
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target


i see the system log,it show when i start system,rc.local is run.
Sep  7 22:54:08  [   13.375390] rc.local[659]: /dev/sda:
Sep  7 22:54:08  [   13.375401] rc.local[659]: setting Advanced Power Management level to 0x80 (128)
Sep  7 22:54:08  [   13.375411] rc.local[659]: APM_level    = 128

but i can't see any log about rc.local when i shutdown.

i put the line in rc.local.shutdown
mpc stop

is there any body has the same problem?

Offline

Board footer

Powered by FluxBB