From 9ef6290a64a8afa246a8c3893acbde3c03867d31 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 4 Nov 2013 14:08:48 +0000 Subject: [PATCH] fix init.d script for pandora-cron --- etc/init.d/pandora-cron | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/init.d/pandora-cron b/etc/init.d/pandora-cron index 8abbb5317..aba0fdf1d 100755 --- a/etc/init.d/pandora-cron +++ b/etc/init.d/pandora-cron @@ -19,7 +19,7 @@ PANDORA_BASE=/srv/pandora DAEMON_USER="pandora" DAEMON_NAME=pandora/manage.py DAEMON="$PANDORA_BASE/$DAEMON_NAME" -DAEMON_ARGS="celerybeat -s /var/run/$NAME-schedule -f /var/log/pandora/$NAME.log -l INFO" +DAEMON_ARGS="celerybeat -s /var/run/pandora/celerybeat-schedule -f /var/log/pandora/$NAME.log -l INFO" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME @@ -45,6 +45,7 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started + test -e /var/run/pandora || (mkdir -p /var/run/pandora && chown $DAEMON_USER:$DAEMON_USER /var/run/pandora) test -e /var/log/pandora || (mkdir -p /var/log/pandora && chown $DAEMON_USER:$DAEMON_USER /var/log/pandora) start-stop-daemon --start --quiet --pidfile $PIDFILE -c $DAEMON_USER \ --exec $DAEMON --test > /dev/null \