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> 73 / 84<br />
--with-drvpath=PATH<br />
The <strong>UPS</strong> drivers will be installed to this path. By default they install to "/bin", i.e., /usr/local/ups/bin.<br />
The "driverpath" global directive in the ups.conf file overrides this at run time.<br />
--with-cgipath=PATH<br />
The CGI programs will be installed to this path. By default, they install to "/cgi-bin", which is usually /usr/local/ups/cgibin.<br />
If you set the prefix to something like /usr, you should set the cgipath to something else, because /usr/cgi-bin is pretty ugly and<br />
non-standard.<br />
The CGI programs are not built or installed by default. Use "./configure --with-cgi" to request that they are built and installed.<br />
--with-htmlpath=PATH<br />
HTML files will be installed to this path. By default, this is "/html". Note that HTML files are only installed if --with-cgi<br />
is selected.<br />
--with-pkgconfig-dir=PATH<br />
Where to install pkg-config *.pc files. This option only has an effect if --with-lib is selected, and causes a pkg-config file to be<br />
installed in the named location. The default is /pkgconfig.<br />
Use --without-pkgconfig-dir to disable this feature altogether.<br />
--with-hotplug-dir=PATH<br />
Where to install Linux 2.4 hotplugging rules. The default is /etc/hotplug, if that directory exists, and not to install it otherwise.<br />
Note that this installation directory is not a subdirectory of by default. When installing NUT as a non-root user, you<br />
may have to override this option.<br />
Use --without-hotplug-dir to disable this feature altogether.<br />
--with-udev-dir=PATH<br />
Where to install Linux 2.6 hotplugging rules, for kernels that have the "udev" mechanism. The default is /etc/udev, if that<br />
directory exists, and not to install it otherwise. Note that this installation directory is not a subdirectory of by default.<br />
When installing NUT as a non-root user, you may have to override this option.<br />
Use --without-udev-dir to disable this feature altogether.<br />
H.5 Directories used by NUT at run-time<br />
--with-pidpath=PATH<br />
Changes the directory where pid files are stored. By default this is /var/run. Certain programs like upsmon will leave files here.<br />
--with-altpidpath=PATH<br />
Programs that normally don’t have root powers, like the drivers and upsd, write their pid files here. By default this is whatever<br />
the statepath is, as those programs should be able to write there.<br />
--with-statepath=PATH<br />
Change the default location of the state sockets created by the drivers.<br />
The NUT_STATEPATH environment variable overrides this at run time.<br />
Default is /var/state/ups.