Lines 14-20
SourceIfNotEmpty /etc/sysconfig/system
Link Here
|
14 |
rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff |
14 |
rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff |
15 |
|
15 |
|
16 |
# Clean up /var |
16 |
# Clean up /var |
17 |
find /var/run/ /var/lock/ -type f -delete |
17 |
find /run/ /run/lock/ -type f -delete |
|
|
18 |
test ! -L /var/run/ && rm -fr /var/run |
19 |
test ! -L /var/lock/ && rm -fr /var/lock |
18 |
|
20 |
|
19 |
rm -rf /tmp/.X*-lock /tmp/.ICE-unix /tmp/.X11-unix /tmp/.esd /tmp/.font-unix |
21 |
rm -rf /tmp/.X*-lock /tmp/.ICE-unix /tmp/.X11-unix /tmp/.esd /tmp/.font-unix |
20 |
rm -f /tmp/esrv* |
22 |
rm -f /tmp/esrv* |
Lines 43-48
if [ -n "$CLEAN_TMP" ] && [ "$CLEAN_TMP" -ge 1 ]; then
Link Here
|
43 |
fi |
45 |
fi |
44 |
|
46 |
|
45 |
systemd-tmpfiles --clean |
47 |
systemd-tmpfiles --clean |
|
|
48 |
systemd-tmpfiles --remove --create --boot --exclude-prefix=/dev |
46 |
|
49 |
|
47 |
# Possibly create lastlog, faillog, utmp and wtmp, reset utmp and possibly utmpx. |
50 |
# Possibly create lastlog, faillog, utmp and wtmp, reset utmp and possibly utmpx. |
48 |
for f in /var/log/{lastlog,faillog}; do |
51 |
for f in /var/log/{lastlog,faillog}; do |
Lines 59-64
done
Link Here
|
59 |
> /var/run/utmp |
62 |
> /var/run/utmp |
60 |
test -f /var/run/utmpx && > /var/run/utmpx |
63 |
test -f /var/run/utmpx && > /var/run/utmpx |
61 |
|
64 |
|
62 |
systemd-tmpfiles --remove --create --boot --exclude-prefix=/dev |
|
|
63 |
|
64 |
exit 0 |
65 |
exit 0 |