1UPSDRVCTL(8)                      NUT Manual                      UPSDRVCTL(8)
2
3
4

NAME

6       upsdrvctl - UPS driver controller
7

SYNOPSIS

9       upsdrvctl -h
10
11       upsdrvctl [OPTIONS] {start | stop | shutdown} [ups]
12

DESCRIPTION

14       upsdrvctl provides a uniform interface for controlling your UPS
15       drivers. You should use upsdrvctl instead of direct calls to the
16       drivers whenever possible.
17
18       When used properly, upsdrvctl lets you maintain identical startup
19       scripts across multiple systems with different UPS configurations.
20

OPTIONS

22       -h
23           Display the help text.
24
25       -r directory
26           If starting a driver, this value will direct it to chroot(2) into
27           directory. This can be useful when securing systems.
28
29       This may be set in the ups.conf with "chroot" in the global section.
30
31       -t
32           Enable testing mode. This also enables debug mode. Testing mode
33           makes upsdrvctl display the actions it would execute without
34           actually doing them. Use this to test out your configuration
35           without actually doing anything to your UPS drivers. This may be
36           helpful when defining the sdorder directive in your ups.conf(5).
37
38       -u username
39           If starting a driver, this value will direct it to setuid(2) to the
40           user id associated with username.
41
42       If the driver is started as root without specifying this value, it will
43       use the username that was compiled into the binary. This defaults to
44       "nobody", and is far from ideal.
45
46       This may be set in ups.conf with "user" in the global section.
47
48       -D
49           Raise the debug level. Use this multiple times for additional
50           details.
51

COMMANDS

53       upsdrvctl supports three commands - start, stop and shutdown. They take
54       an optional argument which is a UPS name from ups.conf(5). Without that
55       argument, they operate on every UPS that is currently configured.
56
57       start
58           Start the UPS driver(s). In case of failure, further attempts may
59           be executed by using the maxretry and retrydelay options - see
60           ups.conf(5).
61
62       stop
63           Stop the UPS driver(s).
64
65       shutdown
66           Command the UPS driver(s) to run their shutdown sequence. Drivers
67           are stopped according to their sdorder value - see ups.conf(5).
68
69           Warning
70           this will probably power off your computers, so don’t play around
71           with this option. Only use it when your systems are prepared to
72           lose power.
73

ENVIRONMENT VARIABLES

75       NUT_CONFPATH is the path name of the directory that contains upsd.conf
76       and other configuration files. If this variable is not set, upsdrvctl
77       the driver use a built-in default, which is often /usr/local/ups/etc.
78

DIAGNOSTICS

80       upsdrvctl will return a nonzero exit code if it encounters an error
81       while performing the desired operation. This will also happen if a
82       driver takes longer than the maxstartdelay period to enter the
83       background.
84

SEE ALSO

86       nutupsdrv(8), upsd(8), ups.conf(5)
87
88   Internet resources:
89       The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
90
91
92
93Network UPS Tools 2.7.3.          12/29/2015                      UPSDRVCTL(8)
Impressum