From 2e5a0bba737fd166df9b75ebc75d29ce6d81b638 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 19 Apr 2015 15:14:16 -0700 Subject: [PATCH] Don't remove AppData on start for Debian init script --- Autostart-on-Debian.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Autostart-on-Debian.md b/Autostart-on-Debian.md index cea735b..4281d8f 100644 --- a/Autostart-on-Debian.md +++ b/Autostart-on-Debian.md @@ -54,7 +54,7 @@ case "$1" in start) if [ -z "${NZBDRONE_PID}" ]; then echo "Starting $DESC" - rm -rf ${PID_PATH} || return 1 + rm ${PID_FILE} || return 1 install -d --mode=0755 -o $RUN_AS $PID_PATH || return 1 start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS $EXENAME else