Add example systemd units
This commit is contained in:
22
init/systemd/system/odidere@.service
Normal file
22
init/systemd/system/odidere@.service
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=odidere
|
||||||
|
After=network.target whisper.service kokoro.service
|
||||||
|
Requires=whisper.service kokoro.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=%i
|
||||||
|
ExecStart=/usr/local/bin/odidere -c /etc/odidere/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/odidere.service
Normal file
19
init/systemd/user/odidere.service
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=odidere
|
||||||
|
After=network.target whisper.service kokoro.service
|
||||||
|
Requires=whisper.service kokoro.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=%h/.local/bin/odidere -c %h/.config/odidere/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