Browse Source

Fix detection of systemd

on openSUSE Leap 15.0, the string was systemd.cpython-36
tags/v0.55.0
Bernhard M. Wiedemann 6 years ago
parent
commit
42ad7c11d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nginx/templates/config.jinja

+ 1
- 1
nginx/templates/config.jinja View File

{% set error_log_level = nginx.get('error_log',{}).get('level', 'warn') -%} {% set error_log_level = nginx.get('error_log',{}).get('level', 'warn') -%}
error_log {{ ' '.join([error_log_location, error_log_level]) }}; error_log {{ ' '.join([error_log_location, error_log_level]) }};
pid {{ nginx.get('pid', '/var/run/nginx.pid') }}; 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') }}; daemon {{ nginx.get('daemon', 'on') }};
{%- endif %} {%- endif %}



Loading…
Cancel
Save