feat: fix service

This commit is contained in:
Louis Dalibard 2024-08-25 12:42:04 +02:00
parent 7979ed3509
commit 237f2e1b07

View File

@ -1,12 +1,11 @@
[Unit]
Description=hayai - An EEW system for Linux
After=network.target
PartOf=graphical-session.target
StartLimitIntervalSec=60
StartLimitBurst=4
[Service]
User=%i
Environment=DISPLAY=:0
ExecStart=/usr/bin/hayai
Restart=on-failure
RestartSec=1
@ -21,4 +20,4 @@ MemoryDenyWriteExecute=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
WantedBy=graphical-session.target