Network UPS Tools User Manual
Network UPS Tools User Manual
Network UPS Tools User Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Network</strong> <strong>UPS</strong> <strong>Tools</strong> <strong>User</strong> <strong>Manual</strong> 72 / 84<br />
The is used for the permissions of some files, particularly the hotplugging rules for USB. The idea is that the<br />
device files for any <strong>UPS</strong> devices should be readable and writable by members of that group.<br />
The default value for both the username and groupname is "nobody". This was done since it’s slightly better than staying around<br />
as root. Running things as nobody is not a good idea, since it’s a hack for NFS access. You should create at least one separate<br />
user for this software.<br />
If you use one of the --with-user and --with-group options, then you have to use the other one too.<br />
See the INSTALL.nut document and the FAQ for more on this topic.<br />
--with-logfacility=FACILITY<br />
Change the facility used when writing to the log file. Read the man page for openlog to get some idea of what’s available on your<br />
system. Default is LOG_DAEMON.<br />
H.4 Installation directories<br />
--prefix=PATH<br />
This is a fairly standard option with GNU autoconf, and it sets the base path for most of the other install directories. The default<br />
is /usr/local/ups, which puts everything but the state sockets in one easy place.<br />
If you like having things to be at more of a "system" level, setting the prefix to /usr/local or even /usr might be better.<br />
--exec_prefix=PATH<br />
This sets the base path for architecture dependent files. By default, it is the same as .<br />
--sysconfdir=PATH<br />
Changes the location where NUT’s configuration files are stored. By default this path is /etc. Setting this to /etc or<br />
/etc/ups might be useful.<br />
The NUT_CONFPATH environment variable overrides this at run time.<br />
--bindir=PATH<br />
--sbindir=PATH<br />
Where executable files will be installed. Files that are normally executed by root (upsd, upsmon, upssched) go to sbindir, all<br />
others to bindir. The defaults are /bin and /sbin.<br />
--datadir=PATH<br />
Change the data directory, i.e., where architecture independent read-only data is installed. By default this is /share, i.e.,<br />
/usr/local/ups/share. At the moment, this directory only holds two files - the optional cmdvartab and driver.list.<br />
--mandir=PATH<br />
Sets the base directories for the man pages. The default is /man, i.e., /usr/local/ups/man.<br />
--includedir=PATH<br />
Sets the path for include files to be installed when --with-lib is selected. For example, upsclient.h is installed here. The default is<br />
/include.<br />
--libdir=PATH<br />
Sets the installation path for libraries. This is just the upsclient library for now. The default is /lib.