mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 12:10:33 +02:00
#2824 add Restart=on-failure for nginx
This commit is contained in:
@@ -43,6 +43,11 @@ elif [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
# DO NOT EDIT! This file is generate by raspiblitz and will be overwritten
|
# DO NOT EDIT! This file is generate by raspiblitz and will be overwritten
|
||||||
[Unit]
|
[Unit]
|
||||||
After=network.target nss-lookup.target mnt-hdd.mount
|
After=network.target nss-lookup.target mnt-hdd.mount
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
|
TimeoutSec=120
|
||||||
|
RestartSec=60
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# make sure that it is enabled and started
|
# make sure that it is enabled and started
|
||||||
|
Reference in New Issue
Block a user