summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/init11
-rw-r--r--debian/postinst2
2 files changed, 7 insertions, 6 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)
diff --git a/debian/postinst b/debian/postinst
index aa74e9c..4dea08d 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -34,7 +34,7 @@ case "$1" in
if [ -w $DF ]; then
TEMPFILE=`mktemp` || exit 1
- sed $DF -e "s,^ *BOOT_START=.*,BOOT_START=$BOOTSTART," \
+ sed $DF -e "s,^ *BOOT_START=.*,BOOT_START=$BOOT_START," \
-e "s,^ *MAIL_LOG=.*,MAIL_LOG=$MAIL_LOG," \
-e "s,^ *IGNORE_LOCALHOST=.*,IGNORE_LOCALHOST=$IGNORE_LOCALHOST," \
> $TEMPFILE