summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus D. Hanwell <cryos@gentoo.org>2005-12-18 13:29:00 +0000
committerMarcus D. Hanwell <cryos@gentoo.org>2005-12-18 13:29:00 +0000
commit0cce7bde4f3c14c0f0de9d8c826a954324c139db (patch)
tree53248547d0589dcadb040508886f0ea7dc5ef903 /sci-misc/boinc/files
parentadd dev-scheme/gauche-gl:cg (diff)
downloadhistorical-0cce7bde4f3c14c0f0de9d8c826a954324c139db.tar.gz
historical-0cce7bde4f3c14c0f0de9d8c826a954324c139db.tar.bz2
historical-0cce7bde4f3c14c0f0de9d8c826a954324c139db.zip
Fixed dep, bug 115819. Also adjusted handling of the log file.
Package-Manager: portage-2.0.53
Diffstat (limited to 'sci-misc/boinc/files')
-rw-r--r--sci-misc/boinc/files/boinc.init6
1 files changed, 5 insertions, 1 deletions
diff --git a/sci-misc/boinc/files/boinc.init b/sci-misc/boinc/files/boinc.init
index 2245e29b63ea..8a2543faae3b 100644
--- a/sci-misc/boinc/files/boinc.init
+++ b/sci-misc/boinc/files/boinc.init
@@ -31,6 +31,10 @@ start() {
if [ ! -f ${LOGFILE} ]; then
touch ${LOGFILE}
chown ${USER}:${GROUP} ${LOGFILE}
+ else
+ mv ${LOGFILE} ${LOGFILE}.old
+ touch ${LOGFILE}
+ chown ${USER}:${GROUP} ${LOGFILE}
fi
if [ ${ALLOW_REMOTE_RPC} = "yes" ]; then
@@ -39,7 +43,7 @@ start() {
setsid start-stop-daemon --quiet --start --chdir ${RUNTIMEDIR} \
--exec ${BOINCBIN} --chuid ${USER}:${GROUP} \
- --nicelevel ${NICELEVEL} -- ${ARGS} >> ${LOGFILE} 2>&1 &
+ --nicelevel ${NICELEVEL} -- ${ARGS} > ${LOGFILE} 2>&1 &
eend $?
}