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