smartmontools init scripts fails on 'status' action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smartmontools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: smartmontools
ubuntu Karmic koala 9.10
I have smartmontools enabled and it is running, however the status action of the init script fails.
$ ps -lef | grep smartd
5 S root 1592 1 0 80 0 - 3017 hrtime Nov27 ? 00:00:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid
0 S jarl 16487 15853 0 80 0 - 1836 pipe_w 12:11 pts/0 00:00:00 grep smartd
$ sudo invoke-rc.d smartmontools status
* could not access PID file for
invoke-rc.d: initscript smartmontools, action "status" failed.
It sems like there is a name missing at the end of the generated text "could not access PID file for", I don't know if this is related to the actual incorrect behaviour f the status action.
Jarl
Related branches
- Ubuntu Sponsors: Pending requested
-
Diff: 26 lines (+7/-1)2 files modifieddebian/changelog (+6/-0)
debian/smartmontools.init (+1/-1)
The problem is in /etc/init. d/smartmontools . The following lines:
status)
status_ of_proc -p $SMARTDPID $SMARTD smartd && exit 0 || exit $?
;;
These should read as follows:
status)
status_ of_proc -p $PIDFILE $SMARTD smartd && exit 0 || exit $?
;;
I would create the debdiff myself but I have very little time at the moment.