Public bug reported:

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

** Affects: nut (Ubuntu)
     Importance: Undecided
         Status: New

-- 
nut init script reports incorrect status
https://bugs.launchpad.net/bugs/416182
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to