Browse Source

added /tmp cleanup to system.init

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1080 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
448d145da3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      package/base/sysfiles/system.init

+ 2
- 2
package/base/sysfiles/system.init

@ -97,8 +97,8 @@ dnl
block_split(`Setting hostname to $(cat /etc/HOSTNAME).')
check(`hostname "$(cat /etc/HOSTNAME)"')
dnl
block_split(`Refresh utmp, delete lock files and other stuff.')
rm -f /var/lock/* /var/lock/*/* /var/run/* 2> /dev/null
block_split(`Refresh utmp, delete lock and tmp files and other stuff.')
find /var/lock /var/run /tmp -mindepth 1 2> /dev/null | xargs rm -rf
rm -f /etc/nologin /nologin /fastboot ; touch /var/run/utmp
chmod 664 /var/run/utmp ; chown root.tty /var/run/utmp
dnl

Loading…
Cancel
Save