From b46b9834b3fbf80b22ccc12e95f660512cd0fa75 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 11 Jul 2022 01:28:44 +0100 Subject: gentoo auto-resync : 11:07:2022 - 01:28:44 --- www-apps/radarr/files/radarr.init | 7 +++++++ www-apps/radarr/files/radarr.logrotate | 4 ++++ www-apps/radarr/files/radarr.service | 30 ++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 www-apps/radarr/files/radarr.init create mode 100644 www-apps/radarr/files/radarr.logrotate create mode 100644 www-apps/radarr/files/radarr.service (limited to 'www-apps/radarr/files') 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 -- cgit v1.2.3