Binary package hint: nut
Ubuntu release: 9.04 Package: nut 2.4.1-2ubuntu4
When checking the status of nut with
/etc/init.d/nut status
the script gave the output
Checking status of Network UPS Tools * upsd is not running * upsmon is not running
even though both upsd and upsmon were indeed running as shown by the ps command.
I did some digging through the nut init script and found what I believe to be the problem. The script calls a function status_of_proc as follows:
status_of_proc "$DESC" upsd
The first argument to that function should be the full pathname of the daemon. I recommend changing the above line to:
status_of_proc $upsd upsd
Two other uses of the status_of_proc function in the init script regarding upsmon should be changed in a likewise manner.
Cheers, Clyde
Binary package hint: nut
Ubuntu release: 9.04
Package: nut 2.4.1-2ubuntu4
When checking the status of nut with
/etc/init.d/nut status
the script gave the output
Checking status of Network UPS Tools
* upsd is not running
* upsmon is not running
even though both upsd and upsmon were indeed running as shown by the ps command.
I did some digging through the nut init script and found what I believe to be the problem. The script calls a function status_of_proc as follows:
status_of_proc "$DESC" upsd
The first argument to that function should be the full pathname of the daemon. I recommend changing the above line to:
status_of_proc $upsd upsd
Two other uses of the status_of_proc function in the init script regarding upsmon should be changed in a likewise manner.
Cheers,
Clyde