summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-misc/boinc/files')
-rw-r--r--sci-misc/boinc/files/boinc.init23
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=$?