diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-11 01:28:44 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-11 01:28:44 +0100 |
commit | b46b9834b3fbf80b22ccc12e95f660512cd0fa75 (patch) | |
tree | f7eb18ccc89e078e2f175e5249fe0d4dfdb5b104 /www-apps/radarr/files | |
parent | 62f7102650b24618880e8e6f08fcb8fbd235025b (diff) |
gentoo auto-resync : 11:07:2022 - 01:28:44
Diffstat (limited to 'www-apps/radarr/files')
-rw-r--r-- | www-apps/radarr/files/radarr.init | 7 | ||||
-rw-r--r-- | www-apps/radarr/files/radarr.logrotate | 4 | ||||
-rw-r--r-- | www-apps/radarr/files/radarr.service | 30 |
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 |