From 42ad7c11d8cbd29555204532e0229d3d0ceec6a4 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 20 Dec 2018 13:19:28 +0100 Subject: [PATCH] Fix detection of systemd on openSUSE Leap 15.0, the string was systemd.cpython-36 --- nginx/templates/config.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/templates/config.jinja b/nginx/templates/config.jinja index 4c36c3d..3d0a94f 100644 --- a/nginx/templates/config.jinja +++ b/nginx/templates/config.jinja @@ -13,7 +13,7 @@ worker_rlimit_nofile {{ worker_rlimit_nofile }}; {% set error_log_level = nginx.get('error_log',{}).get('level', 'warn') -%} error_log {{ ' '.join([error_log_location, error_log_level]) }}; pid {{ nginx.get('pid', '/var/run/nginx.pid') }}; -{% if salt['test.provider']('service') != 'systemd' -%} +{% if not 'systemd' in salt['test.provider']('service') -%} daemon {{ nginx.get('daemon', 'on') }}; {%- endif %}