View previous topic :: View next topic |
Author |
Message |
servo888 Apprentice
Joined: 22 Feb 2004 Posts: 293
|
Posted: Sun Aug 01, 2004 7:17 pm Post subject: mythbackend start up with nice -20? |
|
|
I'm trying to get mythbackend (which is the backend to the application MythTV) to start up on boot with the nice -20 option.
Code: |
ebegin "Starting myth backend"
start-stop-daemon --start --quiet --chuid "${MYTH_USER}" \
--exec /usr/bin/mythbackend -- \
--daemon --pidfile "${MYTH_PID}" --logfile "${MYTH_LOG}"
eend $?
|
So I tried this:
Code: |
ebegin "Starting myth backend"
start-stop-daemon --start --quiet --chuid "${MYTH_USER}" \
--exec /usr/bin/nice -n -20 /usr/bin/mythbackend -- \
--daemon --pidfile "${MYTH_PID}" --logfile "${MYTH_LOG}"
eend $?
|
But this did not work; mythbackend ran with nice 10. Can anybody help me out? |
|
Back to top |
|
|
KB7OEB n00b
Joined: 28 Dec 2003 Posts: 58 Location: Phoenix,Arizona
|
Posted: Fri Oct 22, 2004 2:15 am Post subject: |
|
|
Take a look at --nicelevel , I got it from the start-stop-dameon man page
Code: | ebegin "Starting myth backend"
start-stop-daemon --start --quiet --nicelevel -10 --chuid "${MYTH_USER}" \
--exec /usr/bin/mythbackend -- \
--daemon --pidfile "${MYTH_PID}" --logfile "${MYTH_LOG}" \
--verbose ${MYTH_VERBOSE}
eend $?
} |
|
|
Back to top |
|
|
|