]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Clean and recreate systemd tmpfiles (even if not using systemd).
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 Jan 2020 13:56:29 +0000 (14:56 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 Jan 2020 14:07:11 +0000 (15:07 +0100)
rc.d/rc.sysinit

index 936244bae6110c9b7f6b9414760cc4b70256ad28..083b0808afcf2ab43b798bdb5937bd0cc0804bc9 100755 (executable)
@@ -1029,6 +1029,8 @@ touch /var/log/wtmp
 chown root:utmp /var/run/utmp /var/log/wtmp
 chmod 0664 /var/run/utmp /var/log/wtmp
 
+[ -x /bin/systemd-tmpfiles ] && /bin/systemd-tmpfiles --clean --boot
+
 # Clean /tmp
 if is_yes "$CLEAN_TMP" && ! is_fsmounted tmpfs /tmp; then
        LC_ALL=C rm -rf /tmp/* /tmp/.[a-zA-Z0-9]*
@@ -1039,6 +1041,8 @@ mkdir -m 1777 -p /tmp/.ICE-unix > /dev/null 2>&1
 chown root:root /tmp/.ICE-unix
 is_yes "$SELINUX" && restorecon /tmp/.ICE-unix >/dev/null 2>&1
 
+[ -x /bin/systemd-tmpfiles ] && /bin/systemd-tmpfiles --create --boot
+
 test -d /var/run/netreport || mkdir -m 770 /var/run/netreport
 
 if ! is_yes "$VSERVER"; then
This page took 0.349712 seconds and 4 git commands to generate.