Displaying 15 results from an estimated 15 matches for "nut_statepath".
2011 May 27
6
Environment Variables
...rams that normally don't have root powers, like the drivers and
upsd, write their pid files here. By default this is whatever the
statepath is, as those programs should be able to write there.
--with-statepath=PATH
Change the default location of the state sockets created by the
drivers.
The NUT_STATEPATH environment variable overrides this at run time.
Default is /var/state/ups.
-----------------------------------
So, the PID path does not have an env var override, but the state path does
and it substitutes for the Alternate PID path as well.
I'm thinking the PID path should also have an ove...
2011 Jan 19
1
[nut-commits] svn commit r2845 - branches/windows_port/common
...path;
> + return (path != NULL) ? path : CONFPATH;
> }
>
> /* Return the default path for the directory containing state files */
> -const char * dflt_statepath(void)
> +const char * dflt_statepath(void)
> {
> - const char * path;
> -
> - if ((path = getenv("NUT_STATEPATH")) == NULL) {
> #ifndef WIN32
> - path = STATEPATH;
> + const char *path = getenv("NUT_STATEPATH");
> #else
> - if( relative_state_path == NULL ) {
> - path = getfullpath(PATH_VAR_RUN);
> - if( path == NULL ) {
> - path = STATEPATH;
> - }
>...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...nt NUT master and an adapted copy of your posted configs and script :D
Experimental debugging now sounds possible.
(*) PC under the desk wails with all its cooling fans as soon as I started
the client which spawned a daemon and itself had exited:
$ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the
'heartbeat at localhost' we were launched to process?
0.000053 [D1] parse_at: 'heartbeat at localhost' in AT command...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...nt NUT master and an adapted copy of your posted configs and script :D
Experimental debugging now sounds possible.
(*) PC under the desk wails with all its cooling fans as soon as I started
the client which spawned a daemon and itself had exited:
$ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the
'heartbeat at localhost' we were launched to process?
0.000053 [D1] parse_at: 'heartbeat at localhost' in AT command...
2023 Jun 13
3
Upssched 100% CPU after updating Debian 12
...copy of your posted configs and script :D
> Experimental debugging now sounds possible.
>
> (*) PC under the desk wails with all its cooling fans as soon as I started
> the client which spawned a daemon and itself had exited:
>
> $ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
> NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
> 0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the
> 'heartbeat at localhost' we were launched to process?
> 0.000053 [D1] parse_at: 'heartbeat at localhos...
2023 Jun 13
3
Upssched 100% CPU after updating Debian 12
...copy of your posted configs and script :D
> Experimental debugging now sounds possible.
>
> (*) PC under the desk wails with all its cooling fans as soon as I started
> the client which spawned a daemon and itself had exited:
>
> $ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
> NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
> 0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the
> 'heartbeat at localhost' we were launched to process?
> 0.000053 [D1] parse_at: 'heartbeat at localhos...
2007 May 17
3
Belkin USB UPSes
I just bought a pair of Belkin USB UPSes -- F6C1200-UNV and F6C550-AVR --
and installed the latest version of nut under Ubuntu 7.04. I'm using
the F6C1200-UNV.
My system does see the device; dmesg says
[ 82.718428] usb 2-2: new low speed USB device using ohci_hcd and address 2
[ 82.941189] usb 2-2: configuration #1 chosen from 1 choice
[ 83.036825] usbcore: registered new driver
2007 May 17
3
Belkin USB UPSes
I just bought a pair of Belkin USB UPSes -- F6C1200-UNV and F6C550-AVR --
and installed the latest version of nut under Ubuntu 7.04. I'm using
the F6C1200-UNV.
My system does see the device; dmesg says
[ 82.718428] usb 2-2: new low speed USB device using ohci_hcd and address 2
[ 82.941189] usb 2-2: configuration #1 chosen from 1 choice
[ 83.036825] usbcore: registered new driver
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...nt NUT master and an adapted copy of your posted configs and script :D
Experimental debugging now sounds possible.
(*) PC under the desk wails with all its cooling fans as soon as I started the client which spawned a daemon and itself had exited:
$ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the 'heartbeat at localhost' we were launched to process?
0.000053 [D1] parse_at: 'heartbeat at localhost' in AT command...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...nt NUT master and an adapted copy of your posted configs and script :D
Experimental debugging now sounds possible.
(*) PC under the desk wails with all its cooling fans as soon as I started the client which spawned a daemon and itself had exited:
$ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command the 'heartbeat at localhost' we were launched to process?
0.000053 [D1] parse_at: 'heartbeat at localhost' in AT command...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi,
Thanks Jim! Here is more system information from the commands you mentioned.
Kari
root at fricka:~# lsof -p 1716171
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1002/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
upssched 1716171 root cwd DIR 8,2 4096 2 /
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi,
Thanks Jim! Here is more system information from the commands you mentioned.
Kari
root at fricka:~# lsof -p 1716171
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1002/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
upssched 1716171 root cwd DIR 8,2 4096 2 /
2023 Jun 13
0
Upssched 100% CPU after updating Debian 12
...figs and script :D
>> Experimental debugging now sounds possible.
>>
>> (*) PC under the desk wails with all its cooling fans as soon as I
>> started the client which spawned a daemon and itself had exited:
>>
>> $ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
>> NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
>> 0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command
>> the 'heartbeat at localhost' we were launched to process?
>> 0.000053 [D1] parse_at: 'heart...
2023 Jun 13
0
Upssched 100% CPU after updating Debian 12
...figs and script :D
>> Experimental debugging now sounds possible.
>>
>> (*) PC under the desk wails with all its cooling fans as soon as I
>> started the client which spawned a daemon and itself had exited:
>>
>> $ UPSNAME=heartbeat at localhost NOTIFYTYPE=ONBATT NUT_STATEPATH=/dev/shm
>> NUT_CONFPATH=`pwd`/tests/NIT/tmp/etc ./clients/upssched -DDDDDDDD
>> 0.000000 [D2] parse_at: is 'heartbeat at localhost' in AT command
>> the 'heartbeat at localhost' we were launched to process?
>> 0.000053 [D1] parse_at: 'heart...
2025 Feb 02
1
Error "Data for UPS [pcmusb] is stale - check driver"
OpenWRT version 23.05.0-rc3 is, for starters, not supported anymore by
the OpenWRT project, and is old.
The current version is OpenWRT 23.05.05
The reason you are likely getting an old version of NUT when you load
the nut package is because you are using an old version of openwrt.
Your team needs to sysupdate your 4G LTE Wifi router
You also, in my opinion, need to seriously reconsider