11 lines
213 B
SYSTEMD
11 lines
213 B
SYSTEMD
|
[Unit]
|
||
|
Description=Service to manage UPS shutdown script
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/python3 /usr/local/bin/shutdown_ups.py
|
||
|
Restart=always
|
||
|
RestartSec=5s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|