implemented health-nginx

This commit is contained in:
2023-11-17 09:36:40 +01:00
parent 756c4d7f77
commit 090f7adccf
10 changed files with 118 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
[Unit]
Description=Check nginx configuration status
OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 {{ nginx_health_check_folder }}health-nginx.py

View File

@@ -0,0 +1,10 @@
[Unit]
Description=starts health-nginx.service
[Timer]
OnCalendar={{ on_calendar_nginx_health_check }}
RandomizedDelaySec={{ randomized_delay_sec }}
Persistent=false
[Install]
WantedBy=timers.target