summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2022-07-06 16:33:41 -0400
committerCraig Andrews <candrews@gentoo.org>2022-07-10 14:25:57 -0400
commitf5831b7b1d5528bdcfbb98418c1ef748273dbecd (patch)
tree32ece58cd6eac2a7d0a3db1c07cb58081c05c372 /www-apps/radarr/files
parentacct-user/radarr: user for radarr (diff)
downloadgentoo-f5831b7b1d5528bdcfbb98418c1ef748273dbecd.tar.gz
gentoo-f5831b7b1d5528bdcfbb98418c1ef748273dbecd.tar.bz2
gentoo-f5831b7b1d5528bdcfbb98418c1ef748273dbecd.zip
www-apps/radarr: fork of Sonarr to work with movies a la Couchpotato.
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'www-apps/radarr/files')
-rw-r--r--www-apps/radarr/files/radarr.init7
-rw-r--r--www-apps/radarr/files/radarr.logrotate4
-rw-r--r--www-apps/radarr/files/radarr.service30
3 files changed, 41 insertions, 0 deletions
diff --git a/www-apps/radarr/files/radarr.init b/www-apps/radarr/files/radarr.init
new file mode 100644
index 000000000000..8abff709a970
--- /dev/null
+++ b/www-apps/radarr/files/radarr.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+
+pidfile="/run/radarr.pid"
+command="/opt/radarr/Radarr"
+command_user="radarr:radarr"
+command_background=true
+
diff --git a/www-apps/radarr/files/radarr.logrotate b/www-apps/radarr/files/radarr.logrotate
new file mode 100644
index 000000000000..c6f14d75e1e4
--- /dev/null
+++ b/www-apps/radarr/files/radarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/radarr/.config/radarr/logs/*.log{
+ missingok
+ su radarr radarr
+}
diff --git a/www-apps/radarr/files/radarr.service b/www-apps/radarr/files/radarr.service
new file mode 100644
index 000000000000..daff14f543b1
--- /dev/null
+++ b/www-apps/radarr/files/radarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=A fork of Sonarr to work with movies à la Couchpotato.
+After=syslog.target network.target
+
+[Service]
+User=radarr
+Group=radarr
+
+Type=simple
+ExecStart=/opt/radarr/Radarr
+TimeoutStopSec=20
+KillMode=process
+Restart=always
+
+PrivateTmp=yes
+PrivateDevices=yes
+PrivateMounts=yes
+ProtectHome=yes
+ProtectSystem=full
+NoNewPrivileges=yes
+ProtectHostname=yes
+ProtectClock=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+ProtectKernelLogs=yes
+ProtectControlGroups=yes
+RestrictRealtime=yes
+
+[Install]
+WantedBy=multi-user.target