diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-07-09 16:49:01 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-07-09 16:49:01 +0000 |
commit | 58636f00450a0db7e15376118682dde1a1f15268 (patch) | |
tree | 69fb8e4b3d8e1f2a9146923df1d860922f1f1054 /sci-misc/boinc/files | |
parent | Delete no longer needed doins (bug #327621). (diff) | |
download | gentoo-2-58636f00450a0db7e15376118682dde1a1f15268.tar.gz gentoo-2-58636f00450a0db7e15376118682dde1a1f15268.tar.bz2 gentoo-2-58636f00450a0db7e15376118682dde1a1f15268.zip |
Version bump. Drop older. Fix bugs #323635 #309439 #314155.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-misc/boinc/files')
-rw-r--r-- | sci-misc/boinc/files/boinc.init | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/sci-misc/boinc/files/boinc.init b/sci-misc/boinc/files/boinc.init index b8a920b5018c..1dc028eadd1a 100644 --- a/sci-misc/boinc/files/boinc.init +++ b/sci-misc/boinc/files/boinc.init @@ -57,27 +57,32 @@ start() { fi if [ "${ALLOW_REMOTE_RPC}" = "yes" ]; then - ARGS="${ARGS} -allow_remote_gui_rpc" + ARGS="${ARGS} --allow_remote_gui_rpc" fi if [ -n "${RC_UNAME}" ]; then - PARAMS="--background --stdout '${LOGFILE}' --stderr '${LOGFILE}' -- ${ARGS}" + PARAMS="--background --stdout '${LOGFILE}' --stderr '${LOGFILE}' ${ARGS}" else - PARAMS="-- ${ARGS} >> '${LOGFILE}' 2>&1 &" + PARAMS="${ARGS} >> '${LOGFILE}' 2>&1" fi generate_logs - # sys-apps/util-linux - CHRT="/usr/bin/chrt ${SCHED_PARAM}" + # sys-apps/util-linux (setup scheduling policy if specified, otherwise blank out + if [ "${SCHED_PARAM}" = "" ]; then + CHRT="" + else + CHRT="/usr/bin/chrt ${SCHED_PARAM}" + fi eval ${CHRT} start-stop-daemon \ - --quiet --start --chdir "${RUNTIMEDIR}" \ - --pidfile "${PIDFILE}" \ + --start --quiet --chdir "${RUNTIMEDIR}" \ + --background \ --make-pidfile \ - --exec "${BOINCBIN}" --chuid "${USER}:${GROUP}" \ + --pidfile "${PIDFILE}" \ + --chuid "${USER}:${GROUP}" \ --nicelevel "${NICELEVEL}" \ - ${PARAMS} + --exec "${BOINCBIN}" -- ${PARAMS} RESULT=$? |