Private GIT

Skip to content
Snippets Groups Projects
Commit b06dbd30 authored by Ruud's avatar Ruud
Browse files

Merge branch 'refs/heads/develop'

parents f84aa8c6 ed068f09
Branches master
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ DAEMON=/usr/bin/python
# Path to store PID file
PID_FILE=/var/run/couchpotato.pid
PID_PATH=$(dirname $PID_FILE)
# script name
NAME=couchpotato
......@@ -44,8 +43,9 @@ set -e
case "$1" in
start)
echo "Starting $DESC"
rm -rf $PID_PATH || return 1
install -d --mode=0755 -o $RUN_AS $PID_PATH || return 1
rm -rf $PID_FILE || return 1
touch $PID_FILE
chown $RUN_AS $PID_FILE
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS
;;
stop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment