diff options
Diffstat (limited to 'www-apps/jackett/files')
-rw-r--r-- | www-apps/jackett/files/jackett.init | 6 | ||||
-rw-r--r-- | www-apps/jackett/files/jackett.logrotate | 4 | ||||
-rw-r--r-- | www-apps/jackett/files/jackett.service | 30 |
3 files changed, 40 insertions, 0 deletions
diff --git a/www-apps/jackett/files/jackett.init b/www-apps/jackett/files/jackett.init new file mode 100644 index 000000000000..ffd6abfa31dd --- /dev/null +++ b/www-apps/jackett/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/files/jackett.logrotate b/www-apps/jackett/files/jackett.logrotate new file mode 100644 index 000000000000..859203f00b2c --- /dev/null +++ b/www-apps/jackett/files/jackett.logrotate @@ -0,0 +1,4 @@ +/var/lib/jackett/.config/Jackett/log.txt{ + missingok + su jackett jackett +} diff --git a/www-apps/jackett/files/jackett.service b/www-apps/jackett/files/jackett.service new file mode 100644 index 000000000000..8a2d7775fed5 --- /dev/null +++ b/www-apps/jackett/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 |