Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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

Browse other questions tagged or ask your own question.