Commit Graph

5 Commits

Author SHA1 Message Date
MichaIng de6effabb2
launcher: do not mask Jackett exit code (#13815)
Currently, in the launcher script the whoami and updater loop are masking the exit code of Jackett. So even if Jackett errors out, the systemd service sees an exit code of "0", which e.g. breaks the `Restart=on-failure` in the [non-mono service template](https://github.com/Jackett/Jackett/wiki/Systemd-service#not-using-mono).

This commit stores the exit code of Jackett in a variable and exits the script explicitly with this exit code, after the updater has been waited for. This way `Restart=on-failure` again can apply and `systemctl status jackett` reports the correct status if Jackett failed.

Signed-off-by: MichaIng <micha@dietpi.com>
2022-12-30 08:17:37 +00:00
Diego Heras 0abb8c8b88
core: add cli parameters in jackett_launcher.sh (#8768) 2020-05-25 23:12:07 +02:00
Diego Heras 4eb7392678
core: improve linux install scripts. resolves #5533 #6098 #5407 (#7614) 2020-03-10 21:49:26 +01:00
MichaIng 847ee211fc jackett_launcher.sh fine tuning (#6297)
+ Execute script with system default bourne shell. On Debian this is "dash" by default, which has a much lower memory foot print compared to bash. As well systems without bash won't fail. "${BASH_SOURCE[0]}" cannot be used then but "readlink -f" is another reliable method to get a full file path, using another coreutils binary like "dirname".
+ Execute Jackett with "--NoRestart" option. This has currently not effect, but it assures that the updater never attempts to restart the Jackett process, which is done by the systemd unit already. This avoids possible restart collisions if anything about the updater behaviour changes, e.g. to fix the originating issue.
+ Remove the "Jackett update complete" print. This is simply wrong if Jackett was stopped ordinarily and the updater itself logs to the same destination, including a "finished to copy files" after completed.

Signed-off-by: MichaIng <micha@dietpi.com>
2019-11-06 06:45:28 +13:00
Diego Heras b72ad9a7f5 updater: improvements in systemd jackett_launcher (#6270) 2019-10-30 14:58:11 +13:00