summaryrefslogtreecommitdiff
path: root/debian/rc
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-06-15 20:14:42 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-06-15 20:14:42 +0000
commit57923e4dd71c001f3c375e70d3c9850f1077d043 (patch)
treedcf3ca1f9dd6af990f6100aa09e0f8f4a5ae9cb6 /debian/rc
parentf1a8bdd86789262228ea26c341825a82ff66bcad (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/rc')
-rwxr-xr-xdebian/rc12
1 files changed, 11 insertions, 1 deletions
diff --git a/debian/rc b/debian/rc
index 416f6d01..f623aeb9 100755
--- a/debian/rc
+++ b/debian/rc
@@ -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