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