[Wylug-discuss] maintenance

Andrew J Cole ajcole at ajcole.org
Sun Aug 19 14:54:56 BST 2007


>On Sunday 19 Aug 2007, Andrew J Cole wrote:
>> >                                           Also is there any routine
>> >maintenance I should be doing in Linux specifically Ubuntu?
>>
>> The occasional backup of impartant data perhaps?
>>
>I'd also recommend cleaning out the /tmp directory from time to time.  I do=
> it=20
>with a weekly cron.
>
>        tmpwatch --mtime --verbose --verbose 168 /tmp
>
><quote>
>You may not want the --verbose, and check the manpage for the --mtime
>option, but basically this deletes all files in /tmp that have not been
>modified for 168 hours or more.
></quote>

Should be ok but there might be some exceptions - some "run on anything"
(binary) services put their pid file in /tmp.  Auto-clearing /tmp can 
result in having to stop them manually (ie. using ps) or worse still
starting a second copy since the check for uniqueness was in /tmp!

Andrew



More information about the Wylug-discuss mailing list