月曜日, 9月 06, 2010

セマフォがいっぱいでApacheが起動しない

2010/05/19perlfreak.vox.comより転載)
そんなときは

#!/bin/sh

for semid in `ipcs -s | grep apache | cut -d' ' -f2`; do
if ipcrm -s $semid; then
true
fi
done

を適当な名前で保存して実行権限をつけ、スーパーユーザで実行。

0 件のコメント: