mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-07-04 15:46:16 +00:00
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.
23 lines
694 B
Desktop File
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
|