Skip to content

Instantly share code, notes, and snippets.

@Leo-PL
Last active August 26, 2023 15:00
Show Gist options
  • Save Leo-PL/a6eb0736ff546f1d7e3de2a653c0e36d to your computer and use it in GitHub Desktop.
Save Leo-PL/a6eb0736ff546f1d7e3de2a653c0e36d to your computer and use it in GitHub Desktop.
[OBSOLETE] nut-driver.service, template version to control UPS driver instances separately of each other
[Unit]
Description=Network UPS Tools - power device driver controller
After=local-fs.target network.target systemd-udev-settle.service
Wants=systemd-udev-settle.service
StopWhenUnneeded=yes
[Service]
ExecStart=/sbin/upsdrvctl start %i
ExecStop=/sbin/upsdrvctl stop %i
Type=forking
[Install]
WantedBy=nut-server.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment