Browse Source

Auto-restart NGINX on failure

susefix
George Robinson 8 years ago
parent
commit
6d41a590f8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nginx/ng/files/nginx.service

+ 3
- 1
nginx/ng/files/nginx.service View File

@@ -9,7 +9,9 @@ ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure
RestartSec=10s
PrivateTmp=true

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

Loading…
Cancel
Save