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.
-
2stackoverflow.com/questions/2143404/…– FINESECDec 6, 2012 at 10:26
-
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...– rackandbonemanDec 6, 2012 at 10:40
-
Thanks for your answers. Unfortunately I can't mark a comment as correct answer...– NickDec 6, 2012 at 13:12
Add a comment
|