From d925b486b0b1c7f89f1054cf25c88a85ab45f55b Mon Sep 17 00:00:00 2001 From: Respheal Date: Thu, 17 Dec 2020 13:20:49 -0500 Subject: [PATCH] formatting and readme corrections --- README.md | 4 ++++ templates/etc/systemd/restart.conf.j2 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b084af..7b1c988 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,12 @@ Available variables are listed below with their default values (you can also see | Variable | Description | | -------- | ----------- | +| monit_daemon | Default: `monit` +| monit_executable_path | Default: `/usr/bin/monit` | monit_config_dir | Default: `/etc/monit.d/` | monitored_services | Default: `['httpd', 'mariadb', 'nginx', 'php-fpm', 'redis']` +| monit_systemd_restart | Default: `true` +| systemd_restart_setting | Default: `on-failure` ## Example Playbook diff --git a/templates/etc/systemd/restart.conf.j2 b/templates/etc/systemd/restart.conf.j2 index 33cbe58..b20f72d 100644 --- a/templates/etc/systemd/restart.conf.j2 +++ b/templates/etc/systemd/restart.conf.j2 @@ -19,7 +19,6 @@ RestartSec=5 StartLimitInterval=500 StartLimitBurst=5 {% endif %} - {% if systemd_version is defined and systemd_version is version('230', '>=') %} [Unit] Description=Monit, proactive monitoring utility for unix systems @@ -28,5 +27,6 @@ After=network.target StartLimitIntervalSec=500 StartLimitBurst=5 {% endif %} + [Install] WantedBy=multi-user.target