diff options
author | Colin Guthrie <colin@mageia.org> | 2012-03-24 19:52:37 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-03-24 20:42:31 +0000 |
commit | 02eaa3560cad5e48784964e92ec4a7f34d3d8335 (patch) | |
tree | d771521be00c9d18c4e8fde834d3415d5dc3165e /systemd | |
parent | 5f74b4095a8439997516827ec6d829b6da91fdf4 (diff) | |
download | initscripts-02eaa3560cad5e48784964e92ec4a7f34d3d8335.tar initscripts-02eaa3560cad5e48784964e92ec4a7f34d3d8335.tar.gz initscripts-02eaa3560cad5e48784964e92ec4a7f34d3d8335.tar.bz2 initscripts-02eaa3560cad5e48784964e92ec4a7f34d3d8335.tar.xz initscripts-02eaa3560cad5e48784964e92ec4a7f34d3d8335.zip |
Fix runlevel switching by only cleaning /var/{lock,run} once on boot.
This is really just a hack as both these folders should really be
symlinks into /run which is tmpfs and thus always clean on boot.
This will be done for mga3 (and performed by dracut on boot
for any filesystem that needs it).
https://bugs.mageia.org/show_bug.cgi?id=4744
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/system/mandriva-clean-var-run-lock.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/systemd/system/mandriva-clean-var-run-lock.service b/systemd/system/mandriva-clean-var-run-lock.service index e8feaacb..2abfeed4 100644 --- a/systemd/system/mandriva-clean-var-run-lock.service +++ b/systemd/system/mandriva-clean-var-run-lock.service @@ -9,8 +9,10 @@ DefaultDependencies=no Wants=local-fs.target After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target Before=systemd-tmpfiles-setup.service sysinit.target shutdown.target +ConditionPathExists=!/run/.suppress-mandriva-var-clean [Service] Type=oneshot ExecStart=-/usr/bin/find /var/lock /var/run -depth ! -type d ! -path /var/lock/TMP_1ST -delete +ExecStartPost=-/bin/touch /run/.suppress-mandriva-var-clean IOSchedulingClass=idle |