View previous topic :: View next topic |
Author |
Message |
Antimatter Guru
Joined: 11 Aug 2003 Posts: 463
|
Posted: Wed Jul 20, 2005 2:49 am Post subject: failed to stop local? Need some help with custom local.stop |
|
|
I wanted to wipe my tmp directory clean upon an system shutdown to keep that directory clean, due to the fact that its a laptop it probably will be seeing frequire suspend or shutdown atleast. So for most part wipping the tmp directory on shutdown would work just fine for that purpose.
Anyway so i went ahead and added this following code to my local.stop config file and now whenever i shutdown the laptop i get this error: Failed to stop local.
which has me puzzled.
anyway here's my local.stop
Quote: |
rm -f /tmp/* &>/dev/null
rmdir --ignore-fail-on-non-empty /tmp/* &>/dev/null
|
so anyone got any ideas? i tried to search but the search stripped out several items in my search pattern and returned items that wasn't even close to the topic. |
|
Back to top |
|
|
jorgeSallum Apprentice
Joined: 15 Dec 2004 Posts: 161 Location: São Paulo/Brazil
|
Posted: Wed Jul 20, 2005 2:56 am Post subject: |
|
|
Have you already tried something more simple in your local.stop like this?
Do you have other commands in your local.stop?
What about the log messages? Have you received something about it?
J. |
|
Back to top |
|
|
Antimatter Guru
Joined: 11 Aug 2003 Posts: 463
|
Posted: Wed Jul 20, 2005 3:34 am Post subject: |
|
|
hmm, that's odd when i replaced both command with rm /tmp/* -rf &> /dev/null it worked fine. |
|
Back to top |
|
|
|