diff options
Diffstat (limited to 'debian/init')
-rw-r--r-- | debian/init | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/debian/init b/debian/init index f689f90..2774f79 100644 --- a/debian/init +++ b/debian/init @@ -36,24 +36,25 @@ case "$1" in # Check that the data directory is writable by the user running # the HTTP daemon if [ -d $RRD_DIR ]; then - chown $HTT_USER:$HTTP_GROUP $RRD_DIR + chown $HTTP_USER:$HTTP_GROUP $RRD_DIR chmod 755 $RRD_DIR fi log_begin_msg "Starting $DESC:" "$NAME" - if [ -f $PIDFILE ]; then + if [ -f $PID_FILE ]; then log_action_cont_msg " already running" log_end_msg 1 else - start-stop-daemon -S -q -b -p $PID_FILE -x $DAEMON -- -l $MAIL_LOG -d --daemon_pid=$PID_FILE \ + start-stop-daemon --start --quiet --background --pidfile $PID_FILE --exec $DAEMON -- \ + --logfile $MAIL_LOG --daemon --daemon_pid=$PID_FILE \ --daemon_rrd=$RRD_DIR $IGNORE_OPTION $EXTRA_OPTIONS log_end_msg $? fi ;; stop) log_begin_msg "Stopping $DESC:" "$NAME" - start-stop-daemon --stop --pidfile $PIDFILE - rm -f $PIDFILE + start-stop-daemon --stop --pidfile $PID_FILE + rm -f $PID_FILE log_end_msg $? ;; restart|force-reload) |