sonyboy.dk

Tools, tip, tricks and other stuff I might come up with

Archive for July, 2009

Apache2 – No space left on device

without comments

I had problems restarting Apache2… After researching a lot I found that it was due there were myriads of semaphore-arrays left, owned by my www-data user.

The following appears to be some of the errors Apache writes in the log.

  • [emerg] (28)No space left on device: Couldn’t create accept lock

    or

  • [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed

    or

  • [error] (28)No space left on device: Cannot create SSLMutex

After stopping Apache I found the semaphores with the following command

ipcs -s | grep www-data

Removing this semaphores immediately solved the problem.

ipcs -s | grep www-data | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’

Written by Sonyboy

July 22nd, 2009 at 9:32 am

Posted in Uncategorized

Tagged with , ,

Disable Dashboard on Mac OS X

without comments

Open Terminal and issue command in subsequent:

defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock

Written by Sonyboy

July 20th, 2009 at 5:31 pm

Posted in Mac

Tagged with