[Bug 416182] [NEW] nut init script reports incorrect status

Clyde Clements clyde.clements at gmail.com
Wed Aug 19 23:12:22 UTC 2009


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
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list