UPSDRVCTL(8) | NUT Manual | UPSDRVCTL(8) |
upsdrvctl - UPS driver controller
upsdrvctl -h
upsdrvctl [OPTIONS] {start | stop | shutdown} [ups]
upsdrvctl provides a uniform interface for controlling your UPS drivers. You should use upsdrvctl instead of direct calls to the drivers whenever possible.
When used properly, upsdrvctl lets you maintain identical startup scripts across multiple systems with different UPS configurations.
-h
-r directory
This may be set in the ups.conf with "chroot" in the global section.
-t
-u username
If the driver is started as root without specifying this value, it will use the username that was compiled into the binary. This defaults to "nobody", and is far from ideal.
This may be set in ups.conf with "user" in the global section.
-D
upsdrvctl supports three commands - start, stop and shutdown. They take an optional argument which is a UPS name from ups.conf(5). Without that argument, they operate on every UPS that is currently configured.
start
stop
shutdown
this will probably power off your computers, so don’t play around with this option. Only use it when your systems are prepared to lose power.
NUT_CONFPATH is the path name of the directory that contains upsd.conf and other configuration files. If this variable is not set, upsdrvctl the driver use a built-in default, which is often /usr/local/ups/etc.
upsdrvctl will return a nonzero exit code if it encounters an error while performing the desired operation. This will also happen if a driver takes longer than the maxstartdelay period to enter the background.
nutupsdrv(8), upsd(8), ups.conf(5)
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
12/29/2015 | Network UPS Tools 2.7.3. |