Bug 220600 - hddtemp.i - needs to be run as daemon
Summary: hddtemp.i - needs to be run as daemon
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: initng-ifiles
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Malmgren
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-22 14:04 UTC by Jason Farrell
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-30 07:13:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jason Farrell 2006-12-22 14:04:11 UTC
Description of problem:
hddtemp.i needs to run hddtemp with the "-d" flag.

Version-Release number of selected component (if applicable):
initng-ifiles-0.0.6-2.fc6

How reproducible:
always

Steps to Reproduce:
1. ng-update add hddtemp 
2. boot
3. nc localhost 7634

Actual results:
no results, because hddtemp only ran once.

Expected results:
|/dev/sda|HDS722525VLSA80|35|C||/dev/sdb|HDS722525VLSA80|33|C||/dev/sdc|HDS722525VLSA80|33|C||/dev/sdd|HDS722525VLSA80|34|C|

Additional info:
Also note that hddtemp on redhat creates /etc/sysconfig/hddtemp for sysv init's
use. mine contains:
HDDTEMP_OPTIONS="-l 127.0.0.1 /dev/sda /dev/sdb /dev/sdc /dev/sdd"

As hddtemp.i is currently written, all that's needed to get it working is for
the following (missing) RUN_DAEMON env to be added:

--- hddtemp.i.orig      2006-12-22 06:43:23.000000000 -0500
+++ hddtemp.i   2006-12-22 06:51:18.000000000 -0500
@@ -11,6 +11,7 @@
        env PORT=7634;
        env SEPARATOR=|;
        env SYSLOG=0;
+       env RUN_DAEMON=yes;
        env_file = /etc/conf.d/hddtemp;
        script daemon = {
                [ -n "${SYSLOG}" -a "${SYSLOG}" != "0" ] && SYSLOG_ARG="-S
${SYSLOG}"

Comment 1 Daniel Malmgren 2006-12-30 07:12:35 UTC
Hmmm... Since I don't use hddtemp myself I can't really confirm this, but I've
commited it into upstreams svn. About the writing of /etc/sysconfig/hddtemp I
guess a proper fix would be welcome...


Note You need to log in before you can comment on or make changes to this bug.