1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

unit: use StateDirectory= instead of RequiresMountsFor=

This commit is contained in:
Yu Watanabe 2017-08-31 18:37:11 +09:00
parent 96f9f6aca7
commit 181b4f56e7
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,6 @@
Description=Load/Save Screen Backlight Brightness of %i
Documentation=man:systemd-backlight@.service(8)
DefaultDependencies=no
RequiresMountsFor=/var/lib/systemd/backlight
Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=sysinit.target shutdown.target
@ -20,3 +19,4 @@ RemainAfterExit=yes
ExecStart=@rootlibexecdir@/systemd-backlight load %i
ExecStop=@rootlibexecdir@/systemd-backlight save %i
TimeoutSec=90s
StateDirectory=systemd/backlight

View File

@ -9,7 +9,6 @@
Description=Load/Save RF Kill Switch Status
Documentation=man:systemd-rfkill.service(8)
DefaultDependencies=no
RequiresMountsFor=/var/lib/systemd/rfkill
BindsTo=sys-devices-virtual-misc-rfkill.device
Conflicts=shutdown.target
After=sys-devices-virtual-misc-rfkill.device systemd-remount-fs.service
@ -19,3 +18,4 @@ Before=shutdown.target
Type=notify
ExecStart=@rootlibexecdir@/systemd-rfkill
TimeoutSec=30s
StateDirectory=systemd/rfkill