Private GIT

Skip to content
Snippets Groups Projects
Commit a2197bcd authored by miigotu's avatar miigotu
Browse files

Merge pull request #2230 from drzoidberg33/develop-initscript_update

Add variable in init.fedora to allow changing the Python path
parents f489c769 789f9675
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ homedir=${SR_HOME-/opt/sickrage} ...@@ -28,6 +28,7 @@ homedir=${SR_HOME-/opt/sickrage}
datadir=${SR_DATA-/opt/sickrage} datadir=${SR_DATA-/opt/sickrage}
pidfile=${SR_PIDFILE-/var/run/sickrage/sickrage.pid} pidfile=${SR_PIDFILE-/var/run/sickrage/sickrage.pid}
nice=${SR_NICE-} nice=${SR_NICE-}
python_bin=${PYTHON_BIN-/usr/bin/python}
## ##
pidpath=`dirname ${pidfile}` pidpath=`dirname ${pidfile}`
...@@ -47,7 +48,7 @@ fi ...@@ -47,7 +48,7 @@ fi
start() { start() {
# Start daemon. # Start daemon.
echo -n $"Starting $prog: " 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=$? RETVAL=$?
echo echo
[ $RETVAL -eq 0 ] && touch $lockfile [ $RETVAL -eq 0 ] && touch $lockfile
...@@ -56,7 +57,7 @@ start() { ...@@ -56,7 +57,7 @@ start() {
stop() { stop() {
echo -n $"Shutting down $prog: " echo -n $"Shutting down $prog: "
killproc -p ${pidfile} python killproc -p ${pidfile} ${python_bin}
RETVAL=$? RETVAL=$?
echo echo
[ $RETVAL -eq 0 ] && rm -f $lockfile [ $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