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:
parent
96f9f6aca7
commit
181b4f56e7
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user