Skip to content

Commit

Permalink
Added the ability to provide nice/ionice options to the SB daemon.
Browse files Browse the repository at this point in the history
  • Loading branch information
Djelibeybi committed Mar 21, 2011
1 parent 879e2be commit 04577f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.fedora
Expand Up @@ -24,6 +24,7 @@ lockfile=/var/lock/subsys/$prog
username=${SB_USER-sickbeard}
homedir=${SB_HOME-/opt/sickbeard}
pidfile=${SB_PIDFILE-/var/run/sickbeard/sickbeard.pid}
nice=${SB_NICE-}
##

pidpath=`dirname ${pidfile}`
Expand All @@ -38,7 +39,7 @@ fi
start() {
# Start daemon.
echo -n $"Starting $prog: "
daemon --user=${username} --pidfile=${pidfile} python $homedir/SickBeard.py $options
daemon --user=${username} --pidfile=${pidfile} ${nice} python ${homedir}/SickBeard.py ${options}
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $lockfile
Expand Down

0 comments on commit 04577f2

Please sign in to comment.