First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 98753
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mobile Herd <mobile@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Micha&#322; Pytasz <mpytasz@pai.net.pl>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 98753 depends on: Show dependency tree
Bug 98753 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-07-12 02:33 0000
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 $?
}

------- Comment #1 From Sergey Belyashov 2005-08-26 12:35:31 0000 -------
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

------- Comment #2 From Henrik Brix Andersen 2005-10-27 12:44:52 0000 -------
I plan to include this with the next revision/version bump. Thanks.

------- Comment #3 From Henrik Brix Andersen 2006-02-15 10:42:11 0000 -------
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.

------- Comment #4 From Micha&#322; Pytasz 2006-02-15 11:58:10 0000 -------
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.                     
                                                    [ !! ]

------- Comment #5 From Micha&#322; Pytasz 2006-02-15 12:00:54 0000 -------
Pressed commit too early, sorry.

You seem to have spelled - it should be --pidfile (one word) not --pid-file
This way it does work.

------- Comment #6 From Henrik Brix Andersen 2006-02-15 12:30:32 0000 -------
Oops, sorry. Fixed in CVS. Thanks.

First Last Prev Next    No search results available      Search page      Enter new bug