feat: fix service

This commit is contained in:
Louis Dalibard 2024-08-25 12:46:36 +02:00
parent 237f2e1b07
commit a15715a7ac
2 changed files with 1 additions and 24 deletions

View File

@ -7,7 +7,7 @@ This software comes with zero guarantee. This software could fail at any time. I
## Arch ## Arch
Install the `ontake-hayai-git` package from the AUR. Install the `ontake-hayai-git` package from the AUR.
Enable the service by running: `sudo systemctl enable --now hayai@[username]` You can now use your desktop environment to set the `hayai` command to run automatically at login.
# Configuration # Configuration
You can configure the software by modifying the values in `~/.config/ontake/hayai/config.yml` and then restarting the service. You can configure the software by modifying the values in `~/.config/ontake/hayai/config.yml` and then restarting the service.

View File

@ -1,23 +0,0 @@
[Unit]
Description=hayai - An EEW system for Linux
PartOf=graphical-session.target
StartLimitIntervalSec=60
StartLimitBurst=4
[Service]
User=%i
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=graphical-session.target