Skip to content

Commit

Permalink
Older logging syntax for Debian 9/Ubuntu 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Respheal committed Sep 10, 2020
1 parent 2bb8fb4 commit 4836f74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/monitrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
set daemon 30 # check services at 30 seconds intervals

{% if ansible_os_family == "Debian"
and (ansible_distribution_major_version == "9"
or ansible_distribution_major_version == "16.04") %}
set logfile /var/log/monit.log
{% else %}
set log /var/log/monit.log
{% endif %}
set eventqueue
basedir /var/monit # set the base directory where events will be stored
slots 100 # optionally limit the queue size
Expand Down

0 comments on commit 4836f74

Please sign in to comment.