Only remove PID file
This commit is contained in:
1 parent
d111393bd6
commit
5e852d05ee
1 file changed
+3
@@ -24,6 +24,7 @@ DAEMON=/usr/bin/python
|
|||||||
|
|
||||||
# Path to store PID file
|
# Path to store PID file
|
||||||
PID_FILE=/var/run/couchpotato.pid
|
PID_FILE=/var/run/couchpotato.pid
|
||||||
|
PID_PATH=$(dirname $PID_FILE)
|
||||||
|
|
||||||
# script name
|
# script name
|
||||||
NAME=couchpotato
|
NAME=couchpotato
|
||||||
@@ -43,6 +44,8 @@ set -e
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo "Starting $DESC"
|
echo "Starting $DESC"
|
||||||
|
rm -rf $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
|
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
|
|||||||
Reference in new issue
Block a user