[Pkg-sysvinit-devel] Bug#385050: initscripts: TMPTIME cleanup doesn't work in /tmp

Ritesh Raj Sarraf rrs at researchut.com
Wed Sep 6 12:38:30 UTC 2006


On Wednesday 06 September 2006 18:00, Petter Reinholdtsen wrote:
> [Ritesh Raj Sarraf]
>
> If your problem is that the files are not cleaned during boot, please
> try to run 'sh -x /etc/init.d/bootclean' and submit the output here.
>
Yes, this one. Else it wouldn't be a bug.

Here's the output:

geeKISSexy:~# sh -x /etc/init.d/bootclean
+ . /lib/init/vars.sh
++ '[' -f /etc/default/rcS ']'
++ . /etc/default/rcS
+++ TMPTIME=5
+++ SULOGIN=no
+++ DELAYLOGIN=no
+++ UTC=yes
+++ VERBOSE=no
+++ FSCKFIX=no
++ '[' '' ']'
+ . /lib/lsb/init-functions
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ which find
+ which xargs
+ for D in /tmp /var/run /var/lock
+ '[' -f /tmp/.clean ']'
+ for D in /tmp /var/run /var/lock
+ '[' -f /var/run/.clean ']'
+ for D in /tmp /var/run /var/lock
+ '[' -f /var/lock/.clean ']'
+ '[' -f /tmp/.clean ']'
+ ES=0
+ '[' -d /tmp ']'
+ '[' -f /tmp/.clean ']'
+ clean_tmp
+ cd /tmp
++ find . -maxdepth 0 -perm -002
+ '[' . = . ']'
+ '[' '!' 5 ']'
+ '[' no = no ']'
+ rm -f .X0-lock
+ case "$TMPTIME" in
+ '[' 5 = 0 ']'
+ TEXPR='-mtime +5 -ctime +5 -atime +5'
+ DEXPR='-mtime +5 -ctime +5'
+ EXCEPT='! -name .
                ! ( -path ./lost+found -uid 0 )
                ! ( -path ./quota.user -uid 0 )
                ! ( -path ./aquota.user -uid 0 )
                ! ( -path ./quota.group -uid 0 )
                ! ( -path ./aquota.group -uid 0 )
                ! ( -path ./.journal -uid 0 )
                ! ( -path ./.clean -uid 0 )
                ! ( -path ./...security* -uid 0 )'
+ mkflagfile /tmp/.clean
+ '[' -L /tmp/.clean ']'
+ rm -f /tmp/.clean
+ set -o noclobber
+ :
+ return 0
+ xargs -0r rm -f --
+ find . -depth -xdev -mtime +5 -ctime +5 -atime 
+5 '!' -name . '!' '(' -path ./lost+found -uid 
0 ')' '!' '(' -path ./quota.user -uid 0 ')' '!' '(' -path ./aquota.user -uid 
0 ')' '!' '(' -path ./quota.group -uid 
0 ')' '!' '(' -path ./aquota.group -uid 0 ')' '!' '(' -path ./.journal -uid 
0 ')' '!' '(' -path ./.clean -uid 0 ')' '!' '(' -path './...security*' -uid 
0 ')' '!' -type d -print0
+ find . -depth -xdev -mtime +5 -ctime 
+5 '!' -name . '!' '(' -path ./lost+found -uid 
0 ')' '!' '(' -path ./quota.user -uid 0 ')' '!' '(' -path ./aquota.user -uid 
0 ')' '!' '(' -path ./quota.group -uid 
0 ')' '!' '(' -path ./aquota.group -uid 0 ')' '!' '(' -path ./.journal -uid 
0 ')' '!' '(' -path ./.clean -uid 0 ')' '!' '(' -path './...security*' -uid 
0 ')' -type d -empty -exec rmdir '{}' ';'
+ '[' no = no ']'
+ return 0
+ '[' -d /var/run ']'
+ '[' -f /var/run/.clean ']'
+ clean_run
+ cd /var/run
+ '[' no = no ']'
+ find . '!' -xtype d '!' -name utmp '!' -name innd.pid -print0
+ xargs -0r rm -f --
+ '[' no = no ']'
+ mkflagfile /var/run/.clean
+ '[' -L /var/run/.clean ']'
+ rm -f /var/run/.clean
+ set -o noclobber
+ :
+ return 0
+ return 0
+ '[' -d /var/lock ']'
+ '[' -f /var/lock/.clean ']'
+ clean_lock
+ cd /var/lock
+ '[' no = no ']'
+ find . '!' -type d -print0
+ xargs -0r rm -f --
+ '[' no = no ']'
+ mkflagfile /var/lock/.clean
+ '[' -L /var/lock/.clean ']'
+ rm -f /var/lock/.clean
+ set -o noclobber
+ :
+ return 0
+ return 0
+ exit 0


And here's a partial listing of /tmp after executing the above command.
geeKISSexy:~# ls -lh /tmp/
total 77M
srw-rw---- 1 dummy audio    0 2006-09-03 05:55 
alsa-dmix-10911-1157243108-179737=
srw-rw---- 1 dummy audio    0 2006-09-03 06:04 
alsa-dmix-6060-1157243672-726175=
srw-rw---- 1 dummy audio    0 2006-09-03 03:23 
alsa-dmix-6097-1157234024-913861=
srw-rw---- 1 dummy audio    0 2006-09-04 01:08 
alsa-dmix-6123-1157312324-74099=
srw-rw---- 1 dummy audio    0 2006-09-03 05:33 
alsa-dmix-6149-1157241829-299972=
srw-rw---- 1 dummy audio    0 2006-09-03 03:31 
alsa-dmix-6176-1157234491-713191=
srw-rw---- 1 dummy audio    0 2006-09-03 06:02 
alsa-dmix-6177-1157243540-237445=
srw-rw---- 1 dummy audio    0 2006-09-04 01:12 
alsa-dmix-6243-1157312529-963994=
srw-rw---- 1 dummy audio    0 2006-09-03 05:42 
alsa-dmix-6266-1157242369-215659=
srw-rw---- 1 dummy audio    0 2006-09-02 05:20 
alsa-dmix-6306-1157154601-560336=
srw-rw---- 1 dummy audio    0 2006-09-04 01:20 
alsa-dmix-6344-1157313009-404551=
srw-rw---- 1 dummy audio    0 2006-09-03 04:53 
alsa-dmix-7078-1157239399-735718=
srw-rw---- 1 dummy audio    0 2006-09-02 04:35 
alsa-dmix-8625-1157151925-852286=
srw-rw---- 1 dummy audio    0 2006-09-02 05:17 
alsa-dmix-9718-1157154445-330208=
srw-rw---- 1 dummy audio    0 2006-09-02 05:05 
alsa-dmix-9857-1157153736-333777=
-rw-r--r-- 1 root  root  3.2K 2006-09-02 02:02 dex
-rw-r--r-- 1 root  root   16K 2006-09-01 12:30 dmesg
drwx------ 3 rrs   rrs   4.0K 2006-09-06 15:08 gconfd-rrs/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 13:22 gpg-05DAhn/
drwx------ 2 rrs   rrs   4.0K 2006-09-02 04:18 gpg-6JlNzz/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 13:21 gpg-AEkWHE/
drwx------ 2 rrs   rrs   4.0K 2006-09-03 03:07 gpg-BAKBWw/
drwx------ 2 rrs   rrs   4.0K 2006-09-03 03:20 gpg-HOa9lM/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 13:21 gpg-HZUbB5/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 13:22 gpg-K6j4cU/
drwx------ 2 rrs   rrs   4.0K 2006-09-03 03:07 gpg-LM9Ui0/
drwx------ 2 rrs   rrs   4.0K 2006-09-02 04:18 gpg-o6dAe3/
drwx------ 2 rrs   rrs   4.0K 2006-09-05 12:05 gpg-q65zfm/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 13:21 gpg-RwXGj1/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 18:04 gpg-TQytHB/
drwx------ 2 rrs   rrs   4.0K 2006-09-05 12:05 gpg-UEQNyS/
drwx------ 2 rrs   rrs   4.0K 2006-09-03 03:20 gpg-zPgOOg/
drwxr-xr-x 2 rrs   rrs   4.0K 2006-09-02 06:55 hsperfdata_rrs/
drwx------ 2 dummy dummy 4.0K 2006-09-04 15:54 kde-dummy/
drwx------ 2 root  root  4.0K 2006-08-31 20:01 kde-root/
drwx------ 4 rrs   rrs   4.0K 2006-09-06 18:03 kde-rrs/
drwx------ 3 dummy dummy 4.0K 2006-09-04 15:54 ksocket-dummy/
drwx------ 2 root  root  4.0K 2006-08-31 20:01 ksocket-root/
drwx------ 3 rrs   rrs   4.0K 2006-09-06 18:01 ksocket-rrs/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 15:08 orbit-rrs/
-rw-r--r-- 1 rrs   rrs    30M 2006-09-01 21:35 pypt-offline-update.zip
drwxr-xr-x 4 rrs   rrs   4.0K 2006-08-31 23:17 Silver-XCursors-3D-0.4/
drwx------ 2 dummy dummy 4.0K 2006-09-04 01:20 ssh-bzNSUC6205/
drwx------ 2 dummy dummy 4.0K 2006-09-02 04:28 ssh-dDUwW10941/
drwx------ 2 dummy dummy 4.0K 2006-09-03 03:34 ssh-DinYtP6814/
drwx------ 2 dummy dummy 4.0K 2006-09-04 01:12 ssh-dTxufp6091/
drwx------ 2 dummy dummy 4.0K 2006-09-02 04:35 ssh-EdZqAY8458/
drwx------ 2 dummy dummy 4.0K 2006-09-02 05:17 ssh-EiRSZx9573/
drwx------ 2 dummy dummy 4.0K 2006-09-02 05:03 ssh-eXMmRk9718/
drwx------ 2 dummy dummy 4.0K 2006-09-03 06:04 ssh-fneOmV5946/
drwx------ 2 dummy dummy 4.0K 2006-09-03 06:07 ssh-GfrHXW6092/
drwx------ 2 dummy dummy 4.0K 2006-09-02 04:46 ssh-HatAgg6050/
drwx------ 2 rrs   rrs   4.0K 2006-09-02 04:18 ssh-HQrYKc7282/
drwx------ 2 dummy dummy 4.0K 2006-09-04 01:05 ssh-iBvsgP5948/
drwx------ 2 dummy dummy 4.0K 2006-09-03 06:02 ssh-IYdynJ6087/
drwx------ 2 rrs   rrs   4.0K 2006-09-06 13:22 ssh-kbVJhB6098/
drwx------ 2 dummy dummy 4.0K 2006-09-03 04:21 ssh-KzPKcr6933/
drwx------ 2 dummy dummy 4.0K 2006-09-02 05:24 ssh-ldTeqO6012/
drwx------ 2 dummy dummy 4.0K 2006-09-03 06:14 ssh-lkExkg6018/
drwx------ 2 dummy dummy 4.0K 2006-09-03 05:42 ssh-MQRbZs6139/
drwx------ 2 dummy dummy 4.0K 2006-09-04 01:01 ssh-NPLEeh6038/
drwx------ 2 rrs   rrs   4.0K 2006-09-03 03:20 ssh-OWeITy6041/
drwx------ 2 dummy dummy 4.0K 2006-09-03 05:33 ssh-qpfsvL6023/
drwx------ 2 dummy dummy 4.0K 2006-09-02 05:19 ssh-sgAuRZ6168/
drwx------ 2 dummy dummy 4.0K 2006-09-03 03:29 ssh-tkOltt6024/
drwx------ 2 dummy dummy 4.0K 2006-09-03 03:23 ssh-UPTflg6008/
drwx------ 2 dummy dummy 4.0K 2006-09-04 01:08 ssh-wGRRkx5973/
drwx------ 2 rrs   rrs   4.0K 2006-09-03 03:07 ssh-wMwJfb6722/
drwx------ 2 rrs   rrs   4.0K 2006-09-05 12:05 ssh-YxfYeY6194/
drwx------ 2 dummy dummy 4.0K 2006-09-03 05:55 ssh-ZFOgo10761/
-rw-r--r-- 1 root  root   522 2006-09-02 04:59 swsusp
-r-------- 1 rrs   rrs    14K 2006-08-31 12:42 tmp10262578.tmp
-r-------- 1 rrs   rrs    359 2006-09-02 06:13 tmp1074c64b.tmp
-r-------- 1 rrs   rrs    933 2006-09-03 03:10 tmp10bfd5ad.tmp
-r-------- 1 rrs   rrs   4.9K 2006-09-04 14:32 tmp1139d852.tmp
-r-------- 1 rrs   rrs   2.3K 2006-09-02 02:49 tmp11bb3efa.tmp
-r-------- 1 rrs   rrs   6.1K 2006-09-02 02:40 tmp1205acc2.tmp
-r-------- 1 rrs   rrs   6.4K 2006-09-02 06:13 tmp12b2bdaf.tmp
-r-------- 1 rrs   rrs    573 2006-09-02 02:40 tmp1443a426.tmp
-r-------- 1 rrs   rrs   3.8K 2006-09-04 14:32 tmp15fb5201.tmp
-r-------- 1 rrs   rrs   552K 2006-09-04 13:53 tmp15fcf7a4.tmp
-r-------- 1 rrs   rrs   9.2K 2006-09-01 12:19 tmp16923979.tmp
-r-------- 1 rrs   rrs    13K 2006-09-01 20:25 tmp169bec39.tmp
-r-------- 1 rrs   rrs   4.3K 2006-09-01 12:19 tmp16d7c460.tmp
-r-------- 1 rrs   rrs   1.6K 2006-09-04 15:59 tmp172b5450.tmp
-r-------- 1 rrs   rrs   1.1K 2006-09-04 19:08 tmp17660b01.tmp
-r-------- 1 rrs   rrs   1.1K 2006-09-02 02:49 tmp1767c65d.tmp
-r-------- 1 rrs   rrs   1.5K 2006-09-06 13:24 tmp17cde127.tmp
-r-------- 1 rrs   rrs    99K 2006-09-04 05:17 tmp18b87719.tmp
-r-------- 1 rrs   rrs   7.7K 2006-09-02 02:24 tmp18b9d776.tmp
-r-------- 1 rrs   rrs    369 2006-09-04 14:32 tmp18c45f33.tmp
-r-------- 1 rrs   rrs   4.0K 2006-09-01 12:19 tmp1915bbc4.tmp
-r-------- 1 rrs   rrs    788 2006-09-04 15:33 tmp19802e09.tmp
-r-------- 1 rrs   rrs   5.7K 2006-09-02 06:13 tmp19b22ec2.tmp
-r-------- 1 rrs   rrs   2.1K 2006-09-04 15:17 tmp1a70c879.tmp
-r-------- 1 rrs   rrs    32K 2006-09-02 02:49 tmp1af8a771.tmp
-r-------- 1 rrs   rrs   9.7M 2006-09-04 14:32 tmp1b364152.tmp
-r-------- 1 rrs   rrs    64K 2006-09-04 05:17 tmp1b3bf964.tmp
-r-------- 1 rrs   rrs    283 2006-09-02 02:40 tmp1b431539.tmp
-r-------- 1 rrs   rrs   2.2K 2006-09-01 20:25 tmp1b4c68c3.tmp
-r-------- 1 rrs   rrs   2.9K 2006-09-05 12:07 tmp1b8ea1a4.tmp
-r-------- 1 rrs   rrs   1.2K 2006-09-02 06:13 tmp1bf02626.tmp
-r-------- 1 rrs   rrs   1.7K 2006-09-02 02:49 tmp1c3f057.tmp
-r-------- 1 rrs   rrs   1.5K 2006-09-01 12:19 tmp1c6f0e17.tmp


Thanks,
Ritesh
-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is 
research."
"The great are those who achieve the impossible, the petty are those who 
cannot - rrs"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20060906/1cfb7f8b/attachment-0001.pgp


More information about the Pkg-sysvinit-devel mailing list