'Housekeeping' with /etc/rc.d/rc.local_shutdown?
Hi,
I have just started tinkering with /etc/rc.d/rc.local_shutdown which I plan on using for general 'housekeeping' rather than terminating any process in particular. At the moment I simply have: Code:
#!/bin/sh Andrew |
Well, if you are going to delete /tmp every time you shut down, you might as well just mount that on tmpfs and be done with it. That will always give you a fresh /tmp without having to modify the boot scripts at all.
As for the backup files, if those are being created by vim (by default, vim will make those backup files in Slackware), then you can just configure vim to not make them. Unless there is another program running which is creating these files on your machine. |
Thanks for your response:
Quote:
Quote:
Code:
set backupdir=/tmp " Group backup files in this directory Andrew |
The idea of tmpfs was a little too radical for me so I eventually came up with a simple scheme for purging files older than 5 days which gives me the idiot factor I have been after:
Code:
#!/bin/sh Andrew |
All times are GMT -5. The time now is 02:15 PM. |