diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2018-09-30 15:00:02 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-10-02 16:14:07 +0300 |
commit | a1e7c998380b422db924e9564ef6494a79011967 (patch) | |
tree | 249476cf0ef2ad2a4b23fb90a5fb3041718b82bc /meta-ibm/recipes-httpd | |
parent | b7e863735bc110a36352b210ebfe8a47d50efcdb (diff) | |
download | openbmc-a1e7c998380b422db924e9564ef6494a79011967.tar.xz |
nginx: generate certificate on reload
The nginx service would generate a self-certificate upon restart (if
there's not already an existing certificate), but not upon reload.
Enable this for reload as well : the phosphor certificate management app
requires services that want to generate self-signed certificates to do
it upon reload (if reload is supported).
(From meta-ibm rev: bbcf9e563c1a1215434c89fc1cc626a7b3d7fdb6)
Change-Id: Ib3625f256fbae1721e4a9f8ac318287a2b6c03fd
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-ibm/recipes-httpd')
-rw-r--r-- | meta-ibm/recipes-httpd/nginx/files/nginx.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-ibm/recipes-httpd/nginx/files/nginx.service b/meta-ibm/recipes-httpd/nginx/files/nginx.service index 3f9dd3de6..a502026a4 100644 --- a/meta-ibm/recipes-httpd/nginx/files/nginx.service +++ b/meta-ibm/recipes-httpd/nginx/files/nginx.service @@ -9,7 +9,7 @@ ExecStartPre=/usr/bin/env gen-cert.sh ExecStartPre=-/usr/bin/env mkdir /var/volatile/nginx/ ExecStartPre=/usr/bin/env nginx -t -p /var/volatile/nginx ExecStart=/usr/bin/env nginx -p /var/volatile/nginx -ExecReload=/usr/bin/env kill -s HUP $MAINPID +ExecReload=/usr/bin/env gen-cert.sh ; /usr/bin/env kill -s HUP $MAINPID ExecStop=/usr/bin/env kill -s QUIT $MAINPID PrivateTmp=true # First time on system takes longer for initial setup so |