summaryrefslogtreecommitdiff
path: root/www-apps/jackett-bin/files
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/jackett-bin/files')
-rw-r--r--www-apps/jackett-bin/files/jackett.init6
-rw-r--r--www-apps/jackett-bin/files/jackett.logrotate4
-rw-r--r--www-apps/jackett-bin/files/jackett.service30
3 files changed, 40 insertions, 0 deletions
diff --git a/www-apps/jackett-bin/files/jackett.init b/www-apps/jackett-bin/files/jackett.init
new file mode 100644
index 000000000000..ffd6abfa31dd
--- /dev/null
+++ b/www-apps/jackett-bin/files/jackett.init
@@ -0,0 +1,6 @@
+#!/sbin/openrc-run
+
+pidfile="/run/jackett.pid"
+command="/opt/jackett/jackett"
+command_user="jackett:jackett"
+command_background=true
diff --git a/www-apps/jackett-bin/files/jackett.logrotate b/www-apps/jackett-bin/files/jackett.logrotate
new file mode 100644
index 000000000000..859203f00b2c
--- /dev/null
+++ b/www-apps/jackett-bin/files/jackett.logrotate
@@ -0,0 +1,4 @@
+/var/lib/jackett/.config/Jackett/log.txt{
+ missingok
+ su jackett jackett
+}
diff --git a/www-apps/jackett-bin/files/jackett.service b/www-apps/jackett-bin/files/jackett.service
new file mode 100644
index 000000000000..8a2d7775fed5
--- /dev/null
+++ b/www-apps/jackett-bin/files/jackett.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=API Support for your favorite torrent trackers
+After=syslog.target network.target
+
+[Service]
+User=jackett
+Group=jackett
+
+Type=simple
+ExecStart=/opt/jackett/jackett
+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