Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#60970 - [nginx] sytemd service does not restart on error

Attached to Project: Arch Linux
Opened by Mike Schliep (schliep) - Wednesday, 05 December 2018, 05:18 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 01 January 2019, 18:08 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Description:
nginx does not restart if started with systemd it exits with an error code or the starting times out.

The solution is to add a Restart= option to the service file.

Systemd reccomends(https://www.freedesktop.org/software/systemd/man/systemd.service.html):
[Service]
Restart=on-failure

openssh uses:

[Service]
Restart=always

Both are good options, I like "always" as it restarts if nginx exits for any reason.
This task depends upon

Loading...