Add example configuration and systemd units

This commit is contained in:
dwrz
2026-01-04 21:09:05 +00:00
parent 0de0793500
commit 2ad8a7928d
3 changed files with 151 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
[Unit]
Description=raven
Documentation=https://code.chimeric.al/dwrz/raven
After=network.target
[Service]
User=%i
ExecStart=/usr/local/bin/raven -c /etc/raven/config.yaml
Restart=on-failure
RestartSec=10
ProtectSystem=full
PrivateTmp=true
SystemCallArchitectures=native
MemoryDenyWriteExecute=true
NoNewPrivileges=true
StartLimitIntervalSec=60
StartLimitBurst=4
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,19 @@
[Unit]
Description=raven
Documentation=https://code.chimeric.al/dwrz/raven
After=network.target
[Service]
ExecStart=%h/.local/bin/raven -c %h/.config/raven/config.yaml
Restart=on-failure
RestartSec=10
SystemCallArchitectures=native
MemoryDenyWriteExecute=true
NoNewPrivileges=true
StartLimitIntervalSec=60
StartLimitBurst=4
[Install]
WantedBy=default.target