Add example configuration and systemd units
This commit is contained in:
22
init/systemd/system/raven@.service
Normal file
22
init/systemd/system/raven@.service
Normal 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
|
||||
19
init/systemd/user/raven.service
Normal file
19
init/systemd/user/raven.service
Normal 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
|
||||
Reference in New Issue
Block a user