Red Hat Bugzilla – Bug 194002
hddtemp init fails at boot
Last modified: 2007-11-30 17:11:34 EST
Description of problem:
hddtemp init fails at boot with:
/etc/sysconfig/hddtemp: line 7: /dev/hda: Permission denied
There's no problem running hddtemp /dev/hda from the cmd line, and suspect
selinux is denying permission?
Version-Release number of selected component (if applicable):
[root@morgansmachine iputils]# hddtemp -v
hddtemp version 0.3-beta15
Steps to Reproduce:
1.Add /dev/hda to /etc/sysconfig/hddtemp
2.Set init to run at boot
How does your /etc/sysconfig/hddtemp look like? The default one only has 4
lines but your error message says line 7. Also, please look for related "avc:
denied" messages in /var/log/messages and post them here.
What about smartd, do you happen to be starting it at boot time too? If this is
a selinux issue, I'd expect it to fail the same way.
smartd running fine.
nothing in messages for "avc:denied".
# hddtemp(8) daemon options. Add at least the disk(s) you want to monitor here.
### Added MR 3-6-06
The way you have added /dev/hda to the config file means that it will try to
execute /dev/hda, not add it to hddtemp's options. Remove everything starting
from the "### ..." line and append /dev/hda to HDDTEMP_OPTIONS, like:
HDDTEMP_OPTIONS="-l 127.0.0.1 /dev/hda"
You've closed "notabug", but perhaps a brief comment at the head of
/etc/sysconfig/hddtemp to the effect of your note above would stop others making
the same mistake?
Yep, already added in my local working copy, will be in the next package revision:
# hddtemp(8) daemon options. Add at least the disk(s) you want to monitor to