search for: writepid

Displaying 20 results from an estimated 23 matches for "writepid".

Did you mean: write_pid
2009 Apr 20
0
upslog patch
...s, and it runs upslog twice. I had a problem with newsyslog rotating the log file because upslog keeps it open (arguably a bug IMO), but it also has no way of changing the PID file so newsyslog can't HUP it when log rotating. Attached is a patch which allows you to specify the argument for writepid() so you can differentiate them easily. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347...
2024 Jun 11
1
Permissions error
...I added the user that normally logons onto that machine to the nut group.? Different error now: mythuser at amethi:~$ upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33 kill: Operation not permitted writepid: fopen /run/nut/usbhid-ups-cyberpowerAmethi.pid: Permission denied Using subdriver: CyberPower HID 0.4
2024 Jun 11
1
Permissions error
...to that machine to the nut > group.? Different error now: > > > mythuser at amethi:~$ upsdrvctl start > Network UPS Tools - UPS driver controller 2.7.4 > Network UPS Tools - Generic HID driver 0.41 (2.7.4) > USB communication driver 0.33 > kill: Operation not permitted > writepid: fopen /run/nut/usbhid-ups-cyberpowerAmethi.pid: Permission > denied > Using subdriver: CyberPower HID 0.4 > > > Not sure if this is the right solution, but I added write permissions on that file to the nut group. Now I see. mythuser at amethi:~$ upsdrvctl start Network UPS Tool...
2014 Nov 04
0
RFC: new variable battery.status
...;%VAR ups.temperature% %VAR input.frequency%" > 1. I see no need to patch a program for any parameter (-extension) already handled: $ upslog -f "%VAR battery.voltage%" -s ups at fritz.box -l - Network UPS Tools upslog 2.6.4 logging status of ups at fritz.box to - (30s intervals) writepid: fopen /var/run/nut/upslog.pid: Permission denied 25.90 25.90 ^C25.90 Signal 2: exiting $ $ upslog -f "%VAR battery.status.abm%" -s ups at fritz.box -l - Network UPS Tools upslog 2.6.4 logging status of ups at fritz.box to - (30s intervals) writepid: fopen /var/run/nut/upslog.pid: Permis...
2014 Nov 08
0
RFC: new variable battery.status
...gt; 1. I see no need to patch a program for any parameter (-extension) >> already handled: >> >> $ upslog -f "%VAR battery.voltage%" -s ups at fritz.box -l - >> Network UPS Tools upslog 2.6.4 >> logging status of ups at fritz.box to - (30s intervals) >> writepid: fopen /var/run/nut/upslog.pid: Permission denied >> 25.90 >> 25.90 >> ^C25.90 >> Signal 2: exiting >> $ >> >> $ upslog -f "%VAR battery.status.abm%" -s ups at fritz.box -l - >> Network UPS Tools upslog 2.6.4 >> logging status of ups a...
2014 Nov 07
5
RFC: new variable battery.status
...y%" >> > > 1. I see no need to patch a program for any parameter (-extension) > already handled: > > $ upslog -f "%VAR battery.voltage%" -s ups at fritz.box -l - > Network UPS Tools upslog 2.6.4 > logging status of ups at fritz.box to - (30s intervals) > writepid: fopen /var/run/nut/upslog.pid: Permission denied > 25.90 > 25.90 > ^C25.90 > Signal 2: exiting > $ > > $ upslog -f "%VAR battery.status.abm%" -s ups at fritz.box -l - > Network UPS Tools upslog 2.6.4 > logging status of ups at fritz.box to - (30s intervals) &gt...
2015 Jun 04
2
iMAC does not shutdown
...ot receiving any broadcast message on the terminal then brutally killed as > the UPS auto shutdown. > > > If you search for 'upsmon' in /var/log/system.log on the iMac, does it > appear to be logged in to upsd on the master? > > Jun 4 16:34:23 Simone.Home upsmon[1081]: writepid: fopen > /opt/local/var/run/upsmon.pid: Permission denied > > Jun 4 16:34:24 Simone.Home upsmon[1081]: Login on UPS [ > ME-2000 at 192.168.1.69] failed - got [ERR ACCESS-DENIED] > So there is one problem. How can I change permission on upsilon.pid. The access denied is it due to wr...
2014 Nov 04
2
RFC: new variable battery.status
THANKYOUTHANKYOUTHANKYOUTHANKYOU!!!!!! There was a smaller patch posted to the list for lines -1389,9 +1390,10 a couple years ago, it helped some - BUT - it was still buggy. I have a Compaq R3000, I will get this patch integrated pronto and test Note that since the UPS relies on the voltage from the battery pack to determine state of charge, it is quite useful to add in the battery pack
2009 May 05
3
[nut-commits] svn commit r1837 - trunk/clients
...exit(EXIT_SUCCESS); > + > + case 'p': > + pidfilebase = optarg; > + break; > } > } > > @@ -477,7 +483,7 @@ > > setup_signals(); > > - writepid("upslog"); > + writepid(pidfilebase); > > become_user(new_uid); > > > _______________________________________________ > nut-commits mailing list > nut-commits at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-commits &...
2017 Jun 23
3
Device not supported?
...but my device (SU2200RTXLCD2U) is supported, as clearly state here <http://networkupstools.org/stable-hcl.html>. Then I thought I needed the last src code (2.7.4), hence I built it for my machine, but when I run it by: /usr/local/ups/sbin/upsdrvctl start I had, in order, this message "writepid: fopen /var/state/ups/usbhid-ups-trippliteups.pid: Permission denied" and...the same message above about the not supported device! What's wrong in there? Regards Ambrogio P.S. I also performed the installation notes for the driver in here <http://networkupstools.org/docs/man/usbhid-u...
2015 Jun 05
2
iMAC does not shutdown
...oadcast message on the terminal then brutally killed as the UPS auto shutdown. >>> >>> >>> If you search for 'upsmon' in /var/log/system.log on the iMac, does it appear to be logged in to upsd on the master? >>> Jun 4 16:34:23 Simone.Home upsmon[1081]: writepid: fopen /opt/local/var/run/upsmon.pid: Permission denied >>> Jun 4 16:34:24 Simone.Home upsmon[1081]: Login on UPS [ME-2000 at 192.168.1.69] failed - got [ERR ACCESS-DENIED] >> >> So there is one problem. How can I change permission on upsilon.pid. > > The driver write...
2014 Nov 08
1
RFC: new variable battery.status
...patch a program for any parameter (-extension) >>> already handled: >>> >>> $ upslog -f "%VAR battery.voltage%" -s ups at fritz.box -l - >>> Network UPS Tools upslog 2.6.4 >>> logging status of ups at fritz.box to - (30s intervals) >>> writepid: fopen /var/run/nut/upslog.pid: Permission denied >>> 25.90 >>> 25.90 >>> ^C25.90 >>> Signal 2: exiting >>> $ >>> >>> $ upslog -f "%VAR battery.status.abm%" -s ups at fritz.box -l - >>> Network UPS Tools upslog 2.6.4...
2017 Jun 24
6
Device not supported?
On 06/24/2017 04:52 AM, Charles Lepple wrote: > On Jun 23, 2017, at 5:50 PM, Ambrogio Coletti <ambrojohn at gmail.com> wrote: >> "This TrippLite device (09ae:1330) is not (or perhaps not yet) supported by usbhid-ups. [...]" >> but my device (SU2200RTXLCD2U) is supported, as clearly state here. > No, the HCL also mentions "protocol 4001". For Tripp-Lite,
2024 Jun 11
2
Permissions error
On Jun 10, 2024, at 7:22?PM, Jack McGee wrote: > > mythuser at amethi:~$ upsdrvctl start > Network UPS Tools - UPS driver controller 2.7.4 > Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission denied If you are sure the driver is not running (unclear from "eliminating the no connection error"; instead check for the absence of the usbhid-ups
2015 Jun 05
0
iMAC does not shutdown
...gnoring and not receiving any broadcast message on the terminal then brutally killed as the UPS auto shutdown. > > > If you search for 'upsmon' in /var/log/system.log on the iMac, does it appear to be logged in to upsd on the master? > Jun 4 16:34:23 Simone.Home upsmon[1081]: writepid: fopen /opt/local/var/run/upsmon.pid: Permission denied > Jun 4 16:34:24 Simone.Home upsmon[1081]: Login on UPS [ME-2000 at 192.168.1.69] failed - got [ERR ACCESS-DENIED] > > So there is one problem. How can I change permission on upsilon.pid. The driver writes the PID file when it sta...
2017 Jul 05
0
Device not supported?
I've eventually installed Manuel's packages (nut and nut-client). When I run the driver as root (for my tripplite ups) I get: /usr/sbin/upsdrvctl start Network UPS Tools - Generic HID driver 0.42 (v2.7.4-418-gb1314c62.7.4.1) USB communication driver (libusb 0.1) 0.33 writepid: fopen /var/run/nut/usbhid-ups-trippliteups.pid: Permission denied Can't claim USB device [09ae:1330]: could not detach kernel driver from interface 0: Operation not permitted Driver failed to start (exit status=1) And I had to create manually /var/run/nut. What is the problem there? On Fri,...
2015 Jun 05
0
iMAC does not shutdown
...oadcast message on the terminal then brutally killed as >> the UPS auto shutdown. >> >> >> If you search for 'upsmon' in /var/log/system.log on the iMac, does it >> appear to be logged in to upsd on the master? >> Jun 4 16:34:23 Simone.Home upsmon[1081]: writepid: fopen >> /opt/local/var/run/upsmon.pid: Permission denied >> Jun 4 16:34:24 Simone.Home upsmon[1081]: Login on UPS [ >> ME-2000 at 192.168.1.69] failed - got [ERR ACCESS-DENIED] >> > > So there is one problem. How can I change permission on upsilon.pid. > > &gt...
2015 Sep 08
0
UPS/NUT with openSUSE 13.1
...---------------------------------------------------------------- rtd at linux-5048:~> sudo /usr/local/ups/sbin/upsdrvctl -u ups start root's password: Network UPS Tools - UPS driver controller 2.7.2.6_RTD Network UPS Tools - Generic HID driver 0.39 (2.7.2.6_RTD) USB communication driver 0.32 writepid: fopen /var/run/ups/usbhid-ups-rtdups.pid: No such file or directory Using subdriver: RTD UPS HID v1.0 rtd at linux-5048:~> sudo /usr/local/ups/sbin/upsd -u ups Network UPS Tools upsd 2.7.2.6_RTD fopen /var/run/ups/upsd.pid: No such file or directory /usr/local/ups/etc/upsd.conf is world readab...
2017 Jul 05
2
Device not supported?
...entually installed Manuel's packages (nut and nut-client). > > When I run the driver as root (for my tripplite ups) I get: > > /usr/sbin/upsdrvctl start > Network UPS Tools - Generic HID driver 0.42 (v2.7.4-418-gb1314c62.7.4.1) > USB communication driver (libusb 0.1) 0.33 > writepid: fopen /var/run/nut/usbhid-ups-trippliteups.pid: Permission denied > Can't claim USB device [09ae:1330]: could not detach kernel driver from > interface 0: Operation not permitted > Driver failed to start (exit status=1) > > And I had to create manually /var/run/nut. > > Wh...
2015 Sep 05
2
UPS/NUT with openSUSE 13.1
On Fri, 4 Sep 2015, Rob Groner wrote: > Well, I tried the same script method with openSUSE 13.2, and it still did not execute. > > So I tried the system method, and it worked 1 time out of 3 attempts. I captured the last failure: > 2015-09-04T11:43:38.825317-04:00 linux-5048 upsdrvctl[1887]: Can't claim USB device [2a37:5110]: No such file or directory >