[Nut-upsuser] How to shut down the running usbhid-ups driver and start with -DDD option?

Niels Kristian Jensen nkj at internetgruppen.dk
Fri Nov 19 09:21:27 UTC 2010


Quoting Arjen de Korte <nut+users at de-korte.org>:

>> nkj at grisen:~$ sudo upsdrvctl stop PingvinUPS
>> [sudo] password for nkj:
>> Network UPS Tools - UPS driver controller 2.4.3
>> Can't open /var/run/nut/usbhid-ups-auto.pid: No such file or directory
>
> Does the /var/run/nut directory exist? If not, it looks like there is a
> problem with packaging/installing NUT on your system.

Hi Arjen, I should have included that info. I'll try to answer:

The NUT package is listed as maintained by Canonical that is the  
Ubuntu distribution staff, I use Ubuntu 10.04 LTS: The Lucid Lynx.

http://packages.ubuntu.com/lucid/nut


> If it does, what are the contents?


nkj at grisen:~$ sudo su -
root at grisen:~# cd /var/run/nut/
root at grisen:/var/run/nut# ls -al
total 8
drwxrwx---  2 root nut  100 2010-11-12 14:31 .
drwxr-xr-x 16 root root 640 2010-11-19 09:58 ..
-rw-r--r--  1 nut  nut    5 2010-10-22 22:41 upsd.pid
-rw-r--r--  1 root root   5 2010-10-22 22:41 upsmon.pid
srw-rw----  1 nut  nut    0 2010-10-22 22:41 usbhid-ups-PingvinUPS

cat shows that the .pid files contain one integer each and checking  
with "ps ax" shows the integers are correct that is they are process  
numbers:

root at grisen:/var/run/nut# ps ax | grep ups
   305 ?        S      0:00 upstart-udev-bridge --daemon
  1035 ?        Ss    37:48 /lib/nut/usbhid-ups -a PingvinUPS
  1039 ?        Ss     2:16 /sbin/upsd
  1050 ?        Ss     0:00 /sbin/upsmon
  1052 ?        S      1:18 /sbin/upsmon
32753 pts/0    S+     0:00 grep ups

What else can I do to help with this issue, perhaps only an Ubuntu issue?

Best regards,
Niels Kristian



More information about the Nut-upsuser mailing list