# Network UPS Tools (NUT) systemd integration
# Copyright (C) 2011-2026 by NUT contributors
# Distributed under the terms of GPLv2+
# See https://networkupstools.org/
# and https://github.com/networkupstools/nut/

[Unit]
# Trigger restart of nut-driver-enumerator.service whenever ups.conf is edited
Description=Network UPS Tools - Trigger restart of nut-driver-enumerator.service whenever ups.conf is edited
Conflicts=nut-driver-enumerator-daemon.service nut-driver-enumerator-daemon-activator.path nut-driver-enumerator-daemon-activator.service
After=local-fs.target
Before=nut-driver.target
PartOf=nut.target

Documentation=man:nut-driver-enumerator(8)
Documentation=https://www.networkupstools.org/historic/v2.8.5/docs/man/nut-driver-enumerator.html
Documentation=man:ups.conf(5)
Documentation=https://www.networkupstools.org/historic/v2.8.5/docs/man/ups.conf.html
Documentation=man:nut.conf(5)
Documentation=https://www.networkupstools.org/historic/v2.8.5/docs/man/nut.conf.html
Documentation=man:upsdrvsvcctl(8)
Documentation=https://www.networkupstools.org/historic/v2.8.5/docs/man/upsdrvsvcctl.html
Documentation=man:nut.conf(5)
Documentation=https://www.networkupstools.org/historic/v2.8.5/docs/man/nut.conf.html

[Path]
PathModified=/etc/nut/ups.conf
# MODE setting is important for systemd too:
PathModified=/etc/nut/nut.conf

[Install]
WantedBy=nut.target
