slitaz-boot-scripts diff etc/init.d/rcS @ 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 | c7c3f5408ff7 |
children | 9a71d2cb9249 |
line diff
1.1 --- a/etc/init.d/rcS Mon Apr 27 23:20:13 2009 +0200 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