diff options
author | Julien Valroff <julien@kirya.net> | 2010-01-07 13:56:30 +0100 |
---|---|---|
committer | Julien Valroff <julien@kirya.net> | 2010-01-07 13:56:30 +0100 |
commit | eafce7c695522cacad1a1f021c547578a42a992d (patch) | |
tree | 19c7405b5c1ef04fecfe596a38c25595f61e5141 /debian/init | |
parent | af4f184bb83278e552cfe6c51c3ed0809989b889 (diff) |
Fix typos in postinst and init scripts
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) |