summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/radarr-bin/files')
-rw-r--r--www-apps/radarr-bin/files/radarr.init7
-rw-r--r--www-apps/radarr-bin/files/radarr.logrotate4
-rw-r--r--www-apps/radarr-bin/files/radarr.service30
3 files changed, 41 insertions, 0 deletions
diff --git a/www-apps/radarr-bin/files/radarr.init b/www-apps/radarr-bin/files/radarr.init
new file mode 100644
index 000000000000..8abff709a970
--- /dev/null
+++ b/www-apps/radarr-bin/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-bin/files/radarr.logrotate b/www-apps/radarr-bin/files/radarr.logrotate
new file mode 100644
index 000000000000..166b80807334
--- /dev/null
+++ b/www-apps/radarr-bin/files/radarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/radarr/.config/Radarr/logs/*.txt{
+ missingok
+ su radarr radarr
+}
diff --git a/www-apps/radarr-bin/files/radarr.service b/www-apps/radarr-bin/files/radarr.service
new file mode 100644
index 000000000000..daff14f543b1
--- /dev/null
+++ b/www-apps/radarr-bin/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