naparuba/shinken — Issue #196: init script and /var/run/shinken
Author: rycks
Created: 2012-02-24 09:02:29+00:00
State: open

Hello,
for debian/ubuntu init script, you could add this test:

check_privsep_dir() {
if [ ! -d /var/run/shinken ]; then
mkdir /var/run/shinken
chown shinken:root /var/run/shinken
chmod 0750 /var/run/shinken #or other
fi
}

to avoid this error:

$ /etc/init.d/shinken start
Starting scheduler:
FAILED: shinken.daemon.InvalidPidFile: [Errno 13] Permission denied: '/var/run/shinken/schedulerd.pid' (full output is in /tmp/bad_start_for_scheduler)
.../...

Éric