Quick script to clear server semaphores @linux

Posted: 29 September 2015 in Unix
Tags: , , , ,

Basically if you have correctly configured your web-server, with correct limits (from #ipcs -l command). There will be a moment if this is not scripted, that the limit will be broken. Then, there’s an easy way to clear the limits.

for ipcs in `ipcs -s | awk '{print $2}'`; 
do
echo "ipcs=$ipcs"
ipcrm -s $ipcs
done
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s