Fix detection of systemd
on openSUSE Leap 15.0, the string was systemd.cpython-36
This commit is contained in:
parent
6f5ac946d1
commit
42ad7c11d8
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user