Browse Source

Auto-restart NGINX on failure

tags/v0.55.0
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

ExecStart=/usr/sbin/nginx ExecStart=/usr/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure
RestartSec=10s
PrivateTmp=true PrivateTmp=true


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

Loading…
Cancel
Save