Posts Tagged ‘clear semaphores’

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