From 125b40dd174195d9f8fa6233ef96c92c93f75d75 Mon Sep 17 00:00:00 2001 From: Jordan Becker Date: Tue, 8 Jun 2021 09:57:32 +0200 Subject: [PATCH] Add mono-less service file and quick navigation --- Systemd-service.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Systemd-service.md b/Systemd-service.md index aed03f4..6d140e4 100644 --- a/Systemd-service.md +++ b/Systemd-service.md @@ -1,3 +1,8 @@ +- [Using mono](#using-mono) +- [Not using mono](#not-using-mono) + +## Using mono + To automatically start Jackett as a systemd service you have to create create the following service file (e.g. /etc/systemd/system/jackett.service): ```ini @@ -67,4 +72,28 @@ Like the very first script you have to edit: `User` `Group` PATH of `ExecStart` and `WorkingDirectory` -Then if you want to use more or less memory you have to edit the `MemoryMax` value \ No newline at end of file +Then if you want to use more or less memory you have to edit the `MemoryMax` value + +## Not using mono + +If you're not using mono you may use this service file. + +> This service file is following up [issue #11566](https://github.com/Jackett/Jackett/issues/11566) in which Jackett was not able to update properly. It is unclear if the changes made to this mono-less service file actually fixed the issue or not, but it remains a good starting point if you're setting up Jackett with systemd. + +``` +[Unit] +Description=Jackett Daemon +After=network.target + +[Service] +SyslogIdentifier=jackett +Restart=on-failure +Type=simple +User=jackett +Group=jackett +WorkingDirectory=/opt/Jackett +ExecStart=/bin/sh "/opt/Jackett/jackett_launcher.sh" + +[Install] +WantedBy=multi-user.target +```