From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,d4c1f7c0fe672a4 X-Google-Attributes: gidfcda7,public X-Google-Thread: 1020c6,d4c1f7c0fe672a4 X-Google-Attributes: gid1020c6,public X-Google-Thread: 111731,d4c1f7c0fe672a4 X-Google-Attributes: gid111731,public X-Google-Thread: 10872d,d4c1f7c0fe672a4 X-Google-Attributes: gid10872d,public X-Google-Thread: 1070f0,d4c1f7c0fe672a4 X-Google-Attributes: gid1070f0,public X-Google-Thread: 1164f8,d4c1f7c0fe672a4 X-Google-Attributes: gid1164f8,public From: hex@voicenet.com (Matt Knecht) Subject: Re: Different UNIX pro's and con's. Date: 1998/09/16 Message-ID: #1/1 X-Deja-AN: 391809746 References: <35F71814.1E0B911C@iakom.com> <35FF02B1.D5890477@home.com> <6tovb9$rs4$1@enterprise.nssl.noaa.gov> <6tp3ig$10s$1@enterprise.nssl.noaa.gov> X-Trace: news3.voicenet.com 905974950 207.103.26.4 (Wed, 16 Sep 1998 15:42:30 EDT) Organization: Voicenet Systems Administration NNTP-Posting-Date: Wed, 16 Sep 1998 15:42:30 EDT Newsgroups: comp.unix.advocacy,comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec Kevin W. Thomas wrote: >Matt... > >/etc/rc2.d/S05RMTMPFILES doesn't do anything useful if /tmp is a mount point. Thanks for the info. Actually, I don't ever use it. I have my own, home grown scripts to take care of cleaning up /tmp (among many other things). The point I was trying to make was that a reboot just calls certain scripts that do things. Rebooting to run these scripts seems like an *awful* lot of work, and just isn't the lazy man's way! :) >I'd also hate to run the command, even if it worked. Blindly removing files >(at least recently dated files) isn't really a good idea. Running a script that blindly does an rm -rf /tmp/* is a lot less damaging than rebooting the entire system. I'm of the firm belief that /tmp means temporary. If people put anything there, there are *no* guarentees that it will be there even 3 seconds from now. My own scripts don't have quite a draconian view of things, though. They check for file locks before doing anything. If the file is locked, it gets a reprieve, else it gets unlinked. If you're not using file locking, and using /tmp and your file goes away, you have nobody to blame but your own bad programming (Or a bad vendor). >If /tmp gets full on my workstation, I manually remove all the large unused >files. Too much work! :) -- Matt Knecht -