Marcus Brinkmann <[EMAIL PROTECTED]> writes: Hi,
> > (emphasis mine) So do people think that /libexec/rc is right in > > cleaning files and directories from there? On Debian/Linux exempts > > directories (and ... ugh ... innd.pid). > > Independant from what is correct for the Hurds standard /libexec/rc, > we want to be as compatible with Debian in the Debian Hurd package as > possible. Heres is what Debian GNU/Linux does (in /etc/init.d/bootmisc.sh): -------------------------------- [ "$VERBOSE" != no ] && echo -n "/var/run" ( cd /var/run && \ find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \ ! -newer /etc/mtab -exec rm -f -- {} \; ) : > /var/run/utmp if grep -q ^utmp: /etc/group then chmod 664 /var/run/utmp chgrp utmp /var/run/utmp fi [ "$VERBOSE" != no ] && echo "." -------------------------------- Debian GNU/Hurd is currently doing (in /libexec/rc): -------------------------------- if test -d /var/run; then (cd /var/run && { find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \ -exec rm -f -- {} \;; cp /dev/null utmp; chmod 644 utmp; }) fi -------------------------------- > Can you please provide me with a suitable patch? It seems a trivial change to me: -------------------------------- --- rc.orig Tue Jun 12 19:21:56 2001 +++ rc Tue Jun 12 19:40:42 2001 @@ -77,9 +77,19 @@ unset -f remove_translators # because it relies on nullglob fi + if test -d /var/run; then - (cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) + (cd /var/run && { + find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \ + -exec rm -f -- {} \; + cp /dev/null utmp + if grep -q ^utmp: /etc/group + then + chmod 664 utmp + chgrp utmp utmp + fi; }) fi + echo done # This file must exist for e2fsck to work. XXX -------------------------------- bye, moritz -- Moritz Schulte <[EMAIL PROTECTED]> http://www.chaosdorf.de/moritz/ Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/ GPG fingerprint = 3A14 3923 15BE FD57 FC06 B501 0841 2D7B 6F98 4199