summaryrefslogtreecommitdiff
path: root/www-apps/prowlarr/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-11 01:28:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-11 01:28:44 +0100
commitb46b9834b3fbf80b22ccc12e95f660512cd0fa75 (patch)
treef7eb18ccc89e078e2f175e5249fe0d4dfdb5b104 /www-apps/prowlarr/files
parent62f7102650b24618880e8e6f08fcb8fbd235025b (diff)
gentoo auto-resync : 11:07:2022 - 01:28:44
Diffstat (limited to 'www-apps/prowlarr/files')
-rw-r--r--www-apps/prowlarr/files/prowlarr.init7
-rw-r--r--www-apps/prowlarr/files/prowlarr.logrotate4
-rw-r--r--www-apps/prowlarr/files/prowlarr.service30
3 files changed, 41 insertions, 0 deletions
diff --git a/www-apps/prowlarr/files/prowlarr.init b/www-apps/prowlarr/files/prowlarr.init
new file mode 100644
index 000000000000..831a4425a80a
--- /dev/null
+++ b/www-apps/prowlarr/files/prowlarr.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+
+pidfile="/run/prowlarr.pid"
+command="/opt/prowlarr/Prowlarr"
+command_user="prowlarr:prowlarr"
+command_background=true
+
diff --git a/www-apps/prowlarr/files/prowlarr.logrotate b/www-apps/prowlarr/files/prowlarr.logrotate
new file mode 100644
index 000000000000..5b7588e2b51a
--- /dev/null
+++ b/www-apps/prowlarr/files/prowlarr.logrotate
@@ -0,0 +1,4 @@
+/var/lib/prowlarr/.config/prowlarr/logs/*.log{
+ missingok
+ su prowlarr prowlarr
+}
diff --git a/www-apps/prowlarr/files/prowlarr.service b/www-apps/prowlarr/files/prowlarr.service
new file mode 100644
index 000000000000..7fe9097bf338
--- /dev/null
+++ b/www-apps/prowlarr/files/prowlarr.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=An indexer manager/proxy to integrate with your various PVR apps.
+After=syslog.target network.target
+
+[Service]
+User=prowlarr
+Group=prowlarr
+
+Type=simple
+ExecStart=/opt/prowlarr/Prowlarr
+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