apache-formula/apache/service/running.sls

17 lines
401 B
Plaintext
Raw Normal View History

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import apache with context %}
apache-service-running:
service.running:
- name: {{ apache.service.name }}
- enable: True
- reload: True
cmd.run:
- names:
- journalctl -xe -u {{ apache.service.name }} || true
- onfail:
- service: apache-service-running