Arch Linux

Please read this before reporting a bug:

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!

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


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(

openssh uses:


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