From 51844f282087f60fcc20d36f4f0bb011b3cb425c Mon Sep 17 00:00:00 2001 From: CorwinTanner Date: Fri, 21 Nov 2014 17:10:01 -0600 Subject: [PATCH] Fixed "no service named nginx" chkconfig error. chkconfig was attempting to remove /etc/init.d/nginx when it did not exist. --- nginx/package.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/package.sls b/nginx/package.sls index b835803..3783773 100644 --- a/nginx/package.sls +++ b/nginx/package.sls @@ -45,7 +45,7 @@ nginx-old-init-disable: - name: {{ nginx.old_init_disable }} - require{{ _in }}: - module: nginx-old-init - - unless: [ ! -f /etc/init.d/nginx ] + - onlyif: [ -f /etc/init.d/nginx ] {% endif %} {% if grains.get('os_family') == 'Debian' %}