nut-debian/scripts/systemd/nut-monitor.service.in

27 lines
972 B
SYSTEMD
Raw Normal View History

2011-09-29 21:14:46 +03:00
[Unit]
Description=Network UPS Tools - power device monitor and shutdown controller
After=local-fs.target network.target nut-server.service
2022-07-10 10:23:45 +03:00
# Note: We do not specify Requires nut-server.service because
# the `upsd` daemon(s) may be running on a different machine
# (connected to the UPSes) than the `upsmon` shutdown protector.
# The "Wants" directive would try to start the nut-server but
# would not abort if that attempt fails for whatever reason.
Wants=nut-server.service
# 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-monitor.service.d/network.conf` with:
# [Unit]
# Requires=network-online.target
# After=network-online.target
PartOf=nut.target
2011-09-29 21:14:46 +03:00
[Service]
2022-07-10 10:23:45 +03:00
EnvironmentFile=-@CONFPATH@/nut.conf
SyslogIdentifier=%N
ExecStart=@SBINDIR@/upsmon -F
ExecReload=@SBINDIR@/upsmon -c reload
2012-06-01 16:55:19 +03:00
PIDFile=@PIDPATH@/upsmon.pid
2011-09-29 21:14:46 +03:00
[Install]
2022-07-10 10:23:45 +03:00
WantedBy=nut.target