hayai/pkg/hayai@.service

24 lines
428 B
SYSTEMD
Raw Normal View History

2024-08-25 12:29:25 +02:00
[Unit]
2024-08-25 12:34:17 +02:00
Description=hayai - An EEW system for Linux
2024-08-25 12:29:25 +02:00
After=network.target
StartLimitIntervalSec=60
StartLimitBurst=4
[Service]
User=%i
2024-08-25 12:37:21 +02:00
Environment=DISPLAY=:0
2024-08-25 12:29:25 +02:00
ExecStart=/usr/bin/hayai
Restart=on-failure
RestartSec=1
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
# Hardening
ProtectSystem=full
PrivateTmp=true
SystemCallArchitectures=native
MemoryDenyWriteExecute=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target