From 571eb2908dd9ac91c2f668bdc227e62751d39d13 Mon Sep 17 00:00:00 2001 From: Skoobie Date: Thu, 1 Dec 2016 16:52:43 -0500 Subject: [PATCH] nginx/package: add onlyif requisite to nginx-old-init --- nginx/package.sls | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/package.sls b/nginx/package.sls index 58785b7..3a765e5 100644 --- a/nginx/package.sls +++ b/nginx/package.sls @@ -28,6 +28,7 @@ nginx-old-init: - file: nginx-old-init - require_in: - file: nginx + - onlyif: [ -e /var/run/nginx.pid ] # RedHat requires the init file in place to chkconfig off {% if nginx['disable_before_rename'] %}