new upstream 2.8.0
This commit is contained in:
parent
fc7f4b43c1
commit
b2b0c9995a
836 changed files with 137090 additions and 30018 deletions
|
|
@ -1,15 +1,29 @@
|
|||
[Unit]
|
||||
Description=Network UPS Tools - power devices information server
|
||||
After=local-fs.target network.target nut-driver.service
|
||||
After=local-fs.target network.target nut-driver.target
|
||||
# We don't Require drivers to be successfully started! This would be
|
||||
# a change of behavior compared to init SysV, and could prevent from
|
||||
# accessing successfully started, at least to audit a system.
|
||||
Wants=nut-driver.service
|
||||
Wants=nut-driver.target
|
||||
# The `upsd` is a networked service (even if bound to a `localhost`)
|
||||
# so it requires that the OS has some notion of networking already.
|
||||
# Extending the unit does not require *this* file to be edited, you
|
||||
# can instead drop in an additional piece of configuration, e.g. add
|
||||
# a `/etc/systemd/system/nut-server.service.d/network.conf` with:
|
||||
# [Unit]
|
||||
# Requires=network-online.target
|
||||
# After=network-online.target
|
||||
Requires=network.target
|
||||
Before=nut-monitor.service
|
||||
PartOf=nut.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@SBINDIR@/upsd
|
||||
Type=forking
|
||||
EnvironmentFile=-@CONFPATH@/nut.conf
|
||||
SyslogIdentifier=%N
|
||||
# Note: foreground mode by default skips writing a PID file (and
|
||||
# needs Type=simple); can use "-FF" here to create one anyway:
|
||||
ExecStart=@SBINDIR@/upsd -F
|
||||
ExecReload=@SBINDIR@/upsd -c reload -P $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=nut.target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue