From a672b2d6691ebb601cf230fd4160bd5051ad108b Mon Sep 17 00:00:00 2001 From: daichi Date: Sun, 5 Sep 2010 05:44:40 +0000 Subject: Avoid to try to remove suj journal file (.sujournal) and conventional snapshot directory (.snap) from cleartmp rc.d script. --- etc/rc.d/cleartmp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/rc.d') diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp index 94b7799..0d84987 100755 --- a/etc/rc.d/cleartmp +++ b/etc/rc.d/cleartmp @@ -36,7 +36,10 @@ cleartmp_start() # it can prevent foot-shooting in future. # + /tmp/lost+found is preserved, but its contents are removed. # + lost+found and quota.* in subdirectories are removed. + # + .sujournal and .snap are preserved. find -x ${tmp}/. ! -name . \ + ! \( -name .sujournal -type f -user root \) \ + ! \( -name .snap -type d -user root \) \ ! \( -name lost+found -type d -user root \) \ ! \( \( -name quota.user -or -name quota.group \) \ -type f -user root \) \ -- cgit v1.1