Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm currently facing the problem that on one of our Debian web servers a lot of semaphores are leaked. Is there a way to automatically remove all leaked semaphores? What I do now is to remove them manually using ipcrm -s which is quite tedious. I also want to avoid to restart the server which causes unwanted downtime.

share|improve this question
2  
    
What prevents you from taking the output of ipcs, filtering it with some grep and sed, and feeding that to ipcrm via a shell for loop or xargs? Crontab to taste... –  rackandboneman Dec 6 '12 at 10:40
    
Thanks for your answers. Unfortunately I can't mark a comment as correct answer... –  Nick Dec 6 '12 at 13:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.