Prepared an /etc/init.d/fancontrold - if there isn't one so far Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Works for me... #!/sbin/runscript FANPID=/var/run/fancontrol.pid FANCONTROL=/usr/sbin/fancontrol depend() { after lm_sensors } start() { ebegin "Starting fan control daaemon" start-stop-daemon --start --quiet --pidfile $FANPID --exec $FANCONTROL -- >>/dev/null & eend $? } stop() { ebegin "Stopping fan control daaemon" start-stop-daemon --stop --quiet --pidfile $FANPID eend $? }
I think that in need to insert "--background" and remove "&" from line: start-stop-daemon --start --quiet --pidfile $FANPID --exec $FANCONTROL -- >>/dev/null & Result: start-stop-daemon --start --quiet --background \ --pidfile $FANPID --exec $FANCONTROL -- >>/dev/null
I plan to include this with the next revision/version bump. Thanks.
Included a slightly modified version of the init script in sys-apps/lm_sensors-2.10.0. Thank you for contributing this script :) Since I have no way of verifying that the script works (lack of supported hardware), please verify this bug report when you have tested sys-apps/lm_sensors-2.10.0.
Well, What I got was: # /etc/init.d/fancontrol start * Caching service dependencies ... [ ok ] * Starting fancontrol ... /sbin/start-stop-daemon: unrecognized option `--pid-file' Try `/sbin/start-stop-daemon --help' for more information. [ !! ]
Pressed commit too early, sorry. You seem to have spelled - it should be --pidfile (one word) not --pid-file This way it does work.
Oops, sorry. Fixed in CVS. Thanks.