aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/system/mandriva-clean-var-run-lock.service
blob: 2abfeed404e6b0fa52fb7199fcbf648369e266b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#  This file is part of initscripts.
#
#  Implement /var/run and /var/lock clean up that is part of standard
#  rc.sysinit but cannot be expressed using tmpfiles.d

[Unit]
Description=Cleanup of /var/run and /var/lock
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