Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
failed to stop local? Need some help with custom local.stop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Wed Jul 20, 2005 2:49 am    Post subject: failed to stop local? Need some help with custom local.stop Reply with quote

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
View user's profile Send private message
jorgeSallum
Apprentice
Apprentice


Joined: 15 Dec 2004
Posts: 161
Location: São Paulo/Brazil

PostPosted: Wed Jul 20, 2005 2:56 am    Post subject: Reply with quote

Have you already tried something more simple in your local.stop like this?

Code:

rm /tmp/* -Rf


Do you have other commands in your local.stop?
What about the log messages? Have you received something about it?

J.
Back to top
View user's profile Send private message
Antimatter
Guru
Guru


Joined: 11 Aug 2003
Posts: 463

PostPosted: Wed Jul 20, 2005 3:34 am    Post subject: Reply with quote

hmm, that's odd when i replaced both command with rm /tmp/* -rf &> /dev/null it worked fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum