Displaying 20 results from an estimated 71 matches for "pidpath".
2025 May 18
1
pidpath, altpidpath, statepath considered muddled or confusing
...ndent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--with-statepath=PATH path for ups state files (${STATEPATH}, typically
/var/state/ups)
--with-altpidpath=PATH path for NUT driver/upsd .pid files not running as
root (<statepath>)
--with-pidpath=PATH Path for root-owned .pid files (${PIDPATH},
typically /var/run)
2) There are some issues; the defaults are hardcoded paths instead of
fol...
2025 May 18
1
pidpath, altpidpath, statepath considered muddled or confusing
Hi,
I looked into this some time back... My reading was that:
* The PIDPATH (for root-owned daemons) could be desired in a secured
location where only root may write (so unprivileged processes running as
`nut`, e.g. random scripts called from upsmon, can not compromise important
stuff - say, replace `upsmon.pid` with a content of `1` so the next `upsmon
-c command` might s...
2017 Nov 20
3
[nbdkit PATCH 0/2] Add nbd forwarder test coverage
To avoid bitrot, any new feature needs testsuite coverage ;)
Still to come: once I get my work on parallel nbd finished,
I will add a test-parallel-nbd.sh that closely mirrors what
my other series added in test-parallel-file.sh.
If desired, it might be a fun exercise to tweak test-nbd into
using a for-loop of user-controlled depth for how deep you
want to nest the forwarding tree, to see where
2025 May 19
1
pidpath, altpidpath, statepath considered muddled or confusing
> Also the upsmon POWERDOWNFLAG fits into this question
I'm confused. That flag can't be persistent across reboots, can it?
2025 May 20
1
pidpath, altpidpath, statepath considered muddled or confusing
I had read the "Also the upsmon POWERDOWNFLAG fits into this question" in your response as you meant the flag belonged in the persistent state directory.
2025 May 20
1
pidpath, altpidpath, statepath considered muddled or confusing
Edgar Fu? via Nut-upsdev <nut-upsdev at alioth-lists.debian.net> writes:
> I had read the "Also the upsmon POWERDOWNFLAG fits into this question"
> in your response as you meant the flag belonged in the persistent
> state directory.
I didn't 100% follow what Jim thinks. I think it belongs in
/var/run-ish-root.
2025 May 19
2
pidpath, altpidpath, statepath considered muddled or confusing
>> Also the upsmon POWERDOWNFLAG fits into this question
> I'm confused. That flag can't be persistent across reboots, can it?
Well, there is little practical reason, if any, for an `/etc/killpower` (as
it is commonly named) to exist when you boot. It also has a potential for
confusion if not deleted, as we discovered in some recent discussion - e.g.
due to no packaged NUT init
2014 Jun 04
1
FreeNAS configuration command
Anybody knows what configure command settings FreeNAS use to compile NUT?
More info on my journey:
http://forums.freenas.org/index.php?threads/nobreak-bz1200-br-back-ups-rs-1200va-600w-bivolt-115-nt.20247/
Thanks
Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Sep 01
4
Tripplite_usb Driver fail on OMNIVS1500
Model: Tripp-lite OMNIVS1500
Error:
Network UPS Tools - UPS driver controller 2.2.1-
Network UPS Tools - Tripp Lite OMNIVS and SMARTPRO driver 0.11 (2.2.1-)
Warning: This is an experimental driver.
Some features may not function correctly.
Detected a UPS: unknown/unknown
libusb_set_report() returned -1 instead of 8
Could not reset watchdog. Please send model information to nut-upsdev
mailing
2011 May 27
6
Environment Variables
I noticed that many configuration options (configure.txt) have environment
variable overrides. However, an important one does not. In the
configuration.txt file, there is one section:
Directories used by NUT at run-time
-----------------------------------
--with-pidpath=PATH
Changes the directory where pid files are stored. By default this is
/var/run. Certain programs like upsmon will leave files here.
--with-altpidpath=PATH
Programs that normally don't have root powers, like the drivers and
upsd, write their pid files here. By default this is whatever...
2017 Jan 31
0
[PATCH nbdkit] Add support for socket activation.
...GRAM_INVOCATION_SHORT_NAME == 1
+#include <errno.h>
+#define program_name program_invocation_short_name
+#else
+#define program_name "nbdkit"
+#endif
+
+static char tmpdir[] = "/tmp/nbdkitXXXXXX";
+static char sockpath[] = "/tmp/nbdkitXXXXXX/sock";
+static char pidpath[] = "/tmp/nbdkitXXXXXX/pid";
+
+static pid_t pid = 0;
+
+static void
+cleanup (void)
+{
+ if (pid > 0)
+ kill (pid, SIGTERM);
+
+ unlink (pidpath);
+ unlink (sockpath);
+ rmdir (tmpdir);
+}
+
+int
+main (int argc, char *argv[])
+{
+ int sock;
+ struct sockaddr_un addr;
+ cha...
2007 Jan 03
2
building trunk
...m4
/usr/local/libexec/autoconf259/autoheader
/usr/local/libexec/automake19/automake -ac
/usr/local/libexec/autoconf259/autoconf
./configure --with-cgi --with-user=nutmon
--with-drvpath=/usr/local/libexec/nut\
--with-cgipath=/usr/local/www/cgi-bin/nut
--with-htmlpath=/usr/local/etc/nut\
--with-pidpath=/var/db/nut --with-statepath=/var/db/nut
--without-pkgconfig-dir\
--mandir=/usr/local/man --bindir=/usr/local/bin --sbindir=/usr/local/sbin
..my configure fails with this:
configure: creating ./config.status
config.status: creating clients/Makefile
config.status: error: cannot find input file:...
2010 Mar 10
1
Tripp-Lite SU2200XLA problem (fwd)
...e driver setuid() to "nut".)
>
> For the upsd issue, check your state path and pid paths (also options to
> ./configure).
>
Sorry, I should have clarified this. My configure options were:
./configure --with-user=nut --with-group=dialout --with-statepath=/var/run/
nut --with-pidpath=/var/run/nut --with-altpidpath=/var/run/nut --sysconfdir=/
etc/ups --with-drvpath=/sbin --with-all --with-pkgconfig-dir=/usr/lib/
pkgconfig --disable-static --without-ipv6
mostly ripped from the Fedora 12 2.4.1 specfile. I'm pretty sure the
--with-user=nut options is in effect since I instrume...
2013 Jul 31
2
Fw: infosec e4
...if what I have done is good :
# get the source from github on my computer
# autogen.sh
# name=nut
# ./configure --prefix=/ --sysconfdir=/etc/$name --mandir=/usr/share/man
--libdir=/usr/lib --includedir=/usr/include --datadir=/usr/share/$name
--with-statepath=/var/run/nut --with-altpidpath=/var/run/nut
--with-drvpath=/lib/nut --with-pidpath=/var/run/$name
--with-user=$name ?with-group=$name --without-ssl
There was an error :
./configure: line 7079: syntax error near unexpected token `CPPUNIT,'
./configure: line 7079: `PKG_CHECK_MODULES(CPPUNIT, cppunit,
have_cppun...
2013 Jul 30
0
nut package with Riello UPS support
...ports/sysutils/nut/Makefile:
STATEDIR?= /var/db/nut
[...]
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \
--program-transform-name="" \
--localstatedir=${STATEDIR} \
--datadir=${PREFIX}/etc/nut \
--with-drvpath=${PREFIX}/libexec/nut \
--with-statepath=${STATEDIR} \
--with-altpidpath=${STATEDIR} \
--with-pidpath=${STATEDIR} \
--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig \
--with-user=${NUT_USER} \
--with-group=${NUT_GROUP} \
--with-dev
I think you need to re-run ./configure in the source tree with the driver, using the arguments above. Then 'cd drivers; make...
2013 Aug 01
0
infosec e4
...> # get the source from github on my computer
> # autogen.sh
> # name=nut
> # ./configure --prefix=/ --sysconfdir=/etc/$name --mandir=/usr/share/man
> --libdir=/usr/lib --includedir=/usr/include --datadir=/usr/share/$name
> --with-statepath=/var/run/nut --with-altpidpath=/var/run/nut
> --with-drvpath=/lib/nut --with-pidpath=/var/run/$name
> --with-user=$name ?with-group=$name --without-ssl
If these are the same parameters as are used to build the .deb, then that should owrk.
> There was an error :
> ./configure: line 7079: syntax error near une...
2016 Oct 22
3
Data Stale at random intervals
- Charles
> On Oct 16, 2016, at 3:34 AM, Daniel Shields <grungelizard9 at hotmail.com> wrote:
>
> I've been testing with debug further and there's a few extra lines when the nut-server stops communicating as opposed to when it's running.
>
>
> Backtrace after stale data, UPS nailbunny at localhost is unavailable:
>
Sorry to take a while to get back to you
2016 Oct 28
0
Data Stale at random intervals
...sysconfdir=/etc/nut --localstatedir=/var \ --libexecdir=/usr/lib/nut --srcdir=. --disable-maintainer-mode \ --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib/x86_64-linux-gnu \ --with-ssl --with-nss --with-cgi --with-dev --enable-static \ --with-statepath=/var/run/nut --with-altpidpath=/var/run/nut \ --with-drvpath=/lib/nut --with-cgipath=/usr/lib/cgi-bin/nut \ --with-htmlpath=/usr/share/nut/www --with-pidpath=/var/run/nut \ --datadir=/usr/share/nut --with-pkgconfig-dir=/usr/lib/aarch64-linux-gnu/pkgconfig \ --with-user=nut --with-group=nut --with-udev-dir=/lib/udev \ --with-syst...
2017 Oct 08
2
Tripplite Smart Int 1000 - wrong numbers
Thank You for You reply, Charles
D?a 07.10.2017 o 14:30 Charles Lepple nap?sal(a):
> Is the "lan4.1" cable different from this one?
> http://networkupstools.org/cables.html#_tripp_lite
Yes, it is different. The correct cable for this interface version looks
like this:
http://pinouts.ru/UPS/tripplite_smartpro_cable_pinout.shtml
> Are you comfortable with rebuilding the
2011 Mar 16
1
Liebert PSIXR 3000 intellislot web card support with NUT 2.6.0
...--with-udev-dir=/lib/udev \
--prefix=/usr \
--exec-prefix=/ \
--sysconfdir=/etc/nut \
--mandir=/usr/share/man \
--libdir=/lib \
--includedir=/usr/include \
--without-ssl \
--with-dev \
--enable-static \
--with-statepath=/var/run/nut \
--with-altpidpath=/var/run/nut \
--with-drvpath=/lib/nut \
--with-htmlpath=/usr/share/nut/www \
--with-pidpath=/var/run/nut \
--datadir=/usr/share/nut \
--with-pkgconfig-dir=/usr/lib/pkgconfig \
--with-user=nut --with-group=nut
I get this when I run upsdrvctl start
Detected LiebertPS...