UPSDRVCTL(8)

NAME
upsdrvctl - UPS driver controller

SYNOPSIS
upsdrvctl -h upsdrvctl [-v] (start | stop | status) [ups]

DESCRIPTION
upsdrvctl provides a uniform interface for controlling your UPS drivers. The intention is for users to always use upsdrvctl for starting and stopping them rather than hard-coding driver calls into their startup scripts. When used properly, upsdrvctl lets you maintain identical startup scripts across multiple systems with different UPS configurations.

OPTIONS

-h  Display the help message.

-v  Enable verbose messages.

COMMANDS
upsdrvctl supports three commands - start, stop, and status. 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
    Start the UPS driver(s).

stop
    Stop the UPS driver(s).

status
    Check the status of the UPS driver(s). If every UPS that has been checked is running, then the exitcode will be 0. If one seems to be missing, the exitcode will be 1.

BUGS
The status checking is rudimentary, and really only looks for the presence of .pid files. If you really want to know if your UPS drivers are alive and well, upsmon(8)'s NOCOMM notifier does a fine job.

SEE ALSO
nutupsdrv(8), upsd(8) ups.conf(5)

  Internet resources:
The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/ The user mailing list: ups@lists.exploits.org