Summary: | sci-misc/boinc-6.10.58-r1 : startup script never returns | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arthurrilke, bug, chrulri, daggs, eike, elettronik, flow, gentoo.cart9, gentoo, peter, Stefan.Bergler, urcindalo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
init script
right one.... |
Description
Toralf Förster
![]() works fine here, can't reproduce it. try emerging it again. ok, didn't updated my config files. confirmed here also Appending an & at multi-line start-stop-daemon construct is a quick & dirty fix. Maybe is related to calling chrt Confirmed. Can you please upload the old init file? Created attachment 243307 [details]
init script
Created attachment 243309 [details]
right one....
don't ask....
(In reply to comment #3) > Appending an & at multi-line start-stop-daemon construct is a quick & dirty > fix. > I actually did a diff of the new and old scripts... the first thing that caught my eye was this: if [ -n "${RC_UNAME}" ]; then PARAMS="--background --stdout '${LOGFILE}' --stderr '${LOGFILE}' -- ${ARGS}" else - PARAMS="-- ${ARGS} >> '${LOGFILE}' 2>&1 &" + PARAMS="-- ${ARGS} >> '${LOGFILE}' 2>&1" fi It seems that ampersand is one of the last things that *used* to be appended to the start-top-daemon ... I tried putting it back (as with the old version) and the desired backgrounding immediately returned. Not sure if this is how we should go about fixing this, but it's definitely an indication of the problem. (In reply to comment #8) > (In reply to comment #3) > > Appending an & at multi-line start-stop-daemon construct is a quick & dirty > > fix. .... > It seems that ampersand is one of the last things that *used* to be appended to > the start-top-daemon ... I tried putting it back (as with the old version) and > the desired backgrounding immediately returned. Better try to add a "--background" to start-stop-daemon (see man page of start-stop-daemon). This worked out for me and is better then the '&'. diff -Naur /tmp/boinc.orig /etc/init.d/boinc --- /tmp/boinc.orig 2010-09-10 12:18:04.064000836 +0200 +++ /etc/init.d/boinc 2010-09-10 12:16:34.012252292 +0200 @@ -81,6 +81,7 @@ --pidfile "${PIDFILE}" \ --chuid "${USER}:${GROUP}" \ --nicelevel "${NICELEVEL}" \ + --background \ --exec "${BOINCBIN}" ${PARAMS} RESULT=$? This might be the solution for the ebuild / package ??? ;-) My boinc version is sci-misc/boinc-6.10.58-r1. Best Regards, Stefan (In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #3) > > > Appending an & at multi-line start-stop-daemon construct is a quick & dirty > > > fix. > .... > > It seems that ampersand is one of the last things that *used* to be appended to > > the start-top-daemon ... I tried putting it back (as with the old version) and > > the desired backgrounding immediately returned. > > Better try to add a "--background" to start-stop-daemon (see man page of > start-stop-daemon). This worked out for me and is better then the '&'. > > diff -Naur /tmp/boinc.orig /etc/init.d/boinc > --- /tmp/boinc.orig 2010-09-10 12:18:04.064000836 +0200 > +++ /etc/init.d/boinc 2010-09-10 12:16:34.012252292 +0200 > @@ -81,6 +81,7 @@ > --pidfile "${PIDFILE}" \ > --chuid "${USER}:${GROUP}" \ > --nicelevel "${NICELEVEL}" \ > + --background \ > --exec "${BOINCBIN}" ${PARAMS} > > RESULT=$? > > This might be the solution for the ebuild / package ??? ;-) > > My boinc version is sci-misc/boinc-6.10.58-r1. > > Best Regards, > Stefan > Your way work but logfile will miss if you background in start-stop-daemon Today I accidentally deleted /etc/init./boinc and therefore re-installed boinc-6.10.58-r1 and realized that the current init.de script doesn't start any boinc application. Instead it returns immediately w/o any further action. Fortunately I had a copy of the old working init.d script. Now I'm wondering whether sth. is wrong on my system or whether this is a general problem. (In reply to comment #9) > --chuid "${USER}:${GROUP}" \ > --nicelevel "${NICELEVEL}" \ > + --background \ > --exec "${BOINCBIN}" ${PARAMS} > > This might be the solution for the ebuild / package ??? ;-) This change allow to finis init script but it seems that boinc doesn't write to logfile (baselayout 1) *** Bug 300169 has been marked as a duplicate of this bug. *** The quick workaround is putting ARGS="--daemon" into your /etc/conf.d/boinc. The correct fix would be to put this into the init script. (In reply to comment #14) > The quick workaround is putting > > ARGS="--daemon" > > into your /etc/conf.d/boinc. > > The correct fix would be to put this into the init script. That is not enough (at least with current versin 6.12.26 - you've to add "--" to this line too : --exec "${BOINCBIN}" -- ${PARAMS} Fixed in 6.12.26-r1 |