Add example systemd units

This commit is contained in:
dwrz
2026-02-13 15:04:02 +00:00
parent 3cd36e7558
commit 9b3c61a2d8
2 changed files with 41 additions and 0 deletions

View 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

View 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