pez-infra/ansible/services/sonarr/sonarr.service
Rasmus "Pez" Wejlgaard ac8dabe9a4
Some checks failed
Deploy (on merge) / Discover hosts (push) Has been cancelled
Deploy (on merge) / deploy (push) Has been cancelled
media_stack: capture london-b sonarr.service unit in repo (PESO-140) (#133)
sonarr was the only *arr service without its systemd unit in the repo —
it was treated as package-managed and never captured, so a london-b
rebuild would lose the unit. Capture the running unit (APT/mono Sonarr
v3) into ansible/services/sonarr/sonarr.service and have the media_stack
role deploy it to /etc/systemd/system like radarr/lidarr/prowlarr,
overriding the package-owned copy. Move sonarr out of the
package-managed enable loop into the custom-unit deploy + enable loops.
2026-06-14 21:10:43 +01:00

23 lines
694 B
Desktop File

# Managed by the pez-infra media_stack Ansible role.
# Captured from the running sonarr v3 (APT/mono) unit on london-b.
# Unlike radarr/lidarr/prowlarr (manually installed /opt binaries), Sonarr is
# the APT package, so ExecStart runs the mono-based Sonarr.exe. Deploying this
# to /etc/systemd/system overrides the package-owned unit in
# /usr/lib/systemd/system so the unit is captured in IaC.
[Unit]
Description=Sonarr Daemon
After=network.target
[Service]
User=root
Group=root
UMask=0002
Type=simple
ExecStart=/usr/bin/mono --debug /usr/lib/sonarr/bin/Sonarr.exe -nobrowser -data=/var/lib/sonarr
TimeoutStopSec=20
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target