18 lines
372 B
SYSTEMD
18 lines
372 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Hecate UPS Monitor and Auto Shutdown Orchestrator
|
||
|
|
Wants=network-online.target
|
||
|
|
After=network-online.target
|
||
|
|
ConditionPathExists=/etc/hecate/hecate.yaml
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=root
|
||
|
|
Group=root
|
||
|
|
ExecStart=/usr/local/bin/hecate daemon --config /etc/hecate/hecate.yaml
|
||
|
|
Restart=always
|
||
|
|
RestartSec=5
|
||
|
|
NoNewPrivileges=true
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|