Private GIT

Skip to content
Snippets Groups Projects
Commit 789f9675 authored by drzoidberg33's avatar drzoidberg33
Browse files

Add variable in init.fedora to allow changing the Python path

parent f489c769
Branches
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ homedir=${SR_HOME-/opt/sickrage}
datadir=${SR_DATA-/opt/sickrage}
pidfile=${SR_PIDFILE-/var/run/sickrage/sickrage.pid}
nice=${SR_NICE-}
python_bin=${PYTHON_BIN-/usr/bin/python}
##
pidpath=`dirname ${pidfile}`
......@@ -47,7 +48,7 @@ fi
start() {
# Start daemon.
echo -n $"Starting $prog: "
daemon --user=${username} --pidfile=${pidfile} ${nice} python ${homedir}/SickBeard.py ${options}
daemon --user=${username} --pidfile=${pidfile} ${nice} ${python_bin} ${homedir}/SickBeard.py ${options}
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
......@@ -56,7 +57,7 @@ start() {
stop() {
echo -n $"Shutting down $prog: "
killproc -p ${pidfile} python
killproc -p ${pidfile} ${python_bin}
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $lockfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment