Created
April 22, 2022 05:36
-
-
Save questionlp/9e51b689622f8c9b933e00e4fb5d16b4 to your computer and use it in GitHub Desktop.
Nut Server Service File for Raspberry Pi OS or Raspbian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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