[default/monit] changement des options pour wheezy

This commit is contained in:
Daniel STAN 2013-05-25 12:25:02 +02:00
parent 5597646837
commit ab7acac200
4 changed files with 30 additions and 15 deletions

View file

@ -1,5 +1,5 @@
<Bundle name="monit">
<Path name="/etc/default/monit"/>
<Python name="/etc/default/monit"/>
<Python name="/etc/monit/monitrc"/>
<Python name="/etc/monit/services"/>
<Path name="/etc/monit/conf.d/placeholder"/>

View file

@ -1,3 +0,0 @@
<FileInfo>
<Info owner='root' group='root' perms='0644'/>
</FileInfo>

View file

@ -1,11 +0,0 @@
#
# Fichier gere par BCfg2 (plugin Cfg)
#
# A ne modifier que sur vert
#
# on lance monit au demarrage
startup=1
# intervale de verification
CHECK_INTERVALS=60

29
Python/etc/default/monit Normal file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["perms"] = 0644
header('Demarrage de monit')
# Pour wheezy et au-delà
if not has('squeeze'):
print """
# On lance monit automatiquement
START="yes"
MONIT_OPTS="-d 60"
"""
else:
print """
# on lance monit au demarrage
startup=1
# intervale de verification
CHECK_INTERVALS=60
"""