[Bug 416182] Re: [SRU]nut init script reports incorrect status

Chuck Short chuck.short at canonical.com
Mon Nov 9 14:14:19 UTC 2009


** Description changed:

  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
+   /etc/init.d/nut status
  
  the script gave the output
  
-   Checking status of Network UPS Tools
-    * upsd is not running
-    * upsmon is not running
+   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
+   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
+   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
+ 
+ ======
+ 
+ SRU Verification:
+ 
+ 1. Install nut
+ 2. Run the /etc/init.d/nut status script
+ 3. Check to see if its running by comparing the output of ps auxwww | grep nut
+ 
+ Note: You should have a UPS to test this with.

-- 
[SRU]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