diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2001-06-15 20:14:42 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2001-06-15 20:14:42 +0000 |
commit | f645cbef37e74f0b35aa371808ef6243f791f46d (patch) | |
tree | 66b63b0075c0f0118a340330434e82b0815cbc15 /debian | |
parent | 7c80866b417ce602f6d1c188d18c28e8cf7e3a14 (diff) |
2001-06-15 Marcus Brinkmann <marcus@gnu.org>
* rc: Apply patch from Moritz Schulte <moritz@chaosdorf.de> to
be more selective with what to clean from /var/run.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/ChangeLog | 5 | ||||
-rwxr-xr-x | debian/rc | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/debian/ChangeLog b/debian/ChangeLog index da6dbe37..a20f2e53 100644 --- a/debian/ChangeLog +++ b/debian/ChangeLog @@ -1,3 +1,8 @@ +2001-06-15 Marcus Brinkmann <marcus@gnu.org> + + * rc: Apply patch from Moritz Schulte <moritz@chaosdorf.de> to + be more selective with what to clean from /var/run. + 2001-04-29 Marcus Brinkmann <marcus@gnu.org> * changelog: Update to reflect Debian upgrades. @@ -77,9 +77,19 @@ if test -d /tmp; then 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 |