mirror of
https://github.com/make-42/hayai.git
synced 2024-11-22 16:40:09 +01:00
feat: fix service
This commit is contained in:
parent
237f2e1b07
commit
a15715a7ac
@ -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.
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user