Browse code

Restart nginx service on failure

Modified nginx service to restart on failure.

Change-Id: Ib81cd61da93213990fed8d10c9848bf85bce1a81
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5376
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Keerthana K authored on 2018/07/20 09:21:48
Showing 2 changed files
... ...
@@ -10,6 +10,7 @@ ExecStart=/usr/sbin/nginx
10 10
 ExecReload=/bin/kill -s HUP $MAINPID
11 11
 ExecStop=/bin/kill -s QUIT $MAINPID
12 12
 PrivateTmp=true
13
+Restart=on-failure
13 14
 
14 15
 [Install]
15 16
 WantedBy=multi-user.target
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        High-performance HTTP server and reverse proxy
2 2
 Name:           nginx
3 3
 Version:        1.13.8
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        BSD-2-Clause
6 6
 URL:            http://nginx.org/download/nginx-%{version}.tar.gz
7 7
 Group:          Applications/System
... ...
@@ -58,6 +58,8 @@ install -p -m 0644 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/nginx.service
58 58
 %{_var}/log/nginx
59 59
 
60 60
 %changelog
61
+*   Fri Jul 20 2018 Keerthana K <keerthanak@vmware.com> 1.13.8-3
62
+-   Restarting nginx on failure.
61 63
 *   Fri Jun 08 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.13.8-2
62 64
 -   adding module njs.
63 65
 *   Fri May 18 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 1.13.8-1