slitaz-boot-scripts rev 176
rcS: remove pids in /var/run tree
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 12 22:35:05 2009 +0200 (2009-08-12) |
parents | 716e7e9ee7e4 |
children | 9a71d2cb9249 |
files | etc/init.d/rcS |
line diff
1.1 --- a/etc/init.d/rcS Sat Jun 27 09:37:50 2009 +0000 1.2 +++ b/etc/init.d/rcS Wed Aug 12 22:35:05 2009 +0200 1.3 @@ -80,8 +80,8 @@ 1.4 # Clean up the system. 1.5 if [ "$CLEAN_UP_SYSTEM" = "yes" ]; then 1.6 echo -n "Cleaning up the system..." 1.7 - /bin/rm -rf /tmp /var/run/*.pid /var/run/dbus/* \ 1.8 - /var/run/hald/pid /var/lock/* 1.9 + find /var/run -name "*.pid" -type f | xargs /bin/rm -f 1.10 + /bin/rm -rf /tmp /var/run/dbus/* /var/run/hald/pid /var/lock/* 1.11 /bin/mkdir -p /tmp && /bin/chmod 1777 /tmp 1.12 status 1.13 else