Skip to content

Instantly share code, notes, and snippets.

@questionlp
Created April 22, 2022 05:36
Show Gist options
  • Save questionlp/9e51b689622f8c9b933e00e4fb5d16b4 to your computer and use it in GitHub Desktop.
Save questionlp/9e51b689622f8c9b933e00e4fb5d16b4 to your computer and use it in GitHub Desktop.
Nut Server Service File for Raspberry Pi OS or Raspbian
# Install as /etc/systemd/system/nut-server.service
#
[Unit]
Description=Network UPS Tools - power devices information server
After=local-fs.target network.target nut-driver.service
# 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
Before=nut-monitor.service
[Service]
ExecStartPre=/bin/sleep 10
ExecStart=/sbin/upsd
Type=forking
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment