computer-playbook/roles/health-nginx/templates/health-nginx.service.j2

8 lines
210 B
Django/Jinja

[Unit]
Description=Check nginx configuration status
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 {{ health_nginx_folder }}health-nginx.py {{nginx_servers_directory}}