summaryrefslogtreecommitdiff
path: root/www-apps/readarr/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-20 14:41:37 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-20 14:41:37 +0100
commitd4b912f35e71cc281dcca92af83eb059d8a0fe0a (patch)
tree2759e74ab061579d0f6985499279f8aa06adb07f /www-apps/readarr/files
parentc915adf64c1415679bfe6b55c95348db2f89202e (diff)
gentoo auto-resync : 20:07:2022 - 14:41:36
Diffstat (limited to 'www-apps/readarr/files')
-rw-r--r--www-apps/readarr/files/readarr.init7
-rw-r--r--www-apps/readarr/files/readarr.logrotate4
-rw-r--r--www-apps/readarr/files/readarr.service30
3 files changed, 41 insertions, 0 deletions
diff --git a/www-apps/readarr/files/readarr.init b/www-apps/readarr/files/readarr.init
new file mode 100644
index 000000000000..5795edbcceb3
--- /dev/null
+++ b/www-apps/readarr/files/readarr.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+
+pidfile="/run/readarr.pid"
+command="/opt/readarr/Radarr"
+command_user="readarr:readarr"
+command_background=true
+
diff --git a/www-apps/readarr/files/readarr.logrotate b/www-apps/readarr/files/readarr.logrotate
new file mode 100644
index 000000000000..2dc56f43cceb
--- /dev/null
+++ b/www-apps/readarr/files/readarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/readarr/.config/readarr/logs/*.log{
+ missingok
+ su readarr readarr
+}
diff --git a/www-apps/readarr/files/readarr.service b/www-apps/readarr/files/readarr.service
new file mode 100644
index 000000000000..c96ba634b514
--- /dev/null
+++ b/www-apps/readarr/files/readarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=An ebook and audiobook collection manager for Usenet and BitTorrent users
+After=syslog.target network.target
+
+[Service]
+User=readarr
+Group=readarr
+
+Type=simple
+ExecStart=/opt/readarr/Readarr
+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