[default/monit] changement des options pour wheezy
This commit is contained in:
parent
5597646837
commit
ab7acac200
4 changed files with 30 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
<Bundle name="monit">
|
<Bundle name="monit">
|
||||||
<Path name="/etc/default/monit"/>
|
<Python name="/etc/default/monit"/>
|
||||||
<Python name="/etc/monit/monitrc"/>
|
<Python name="/etc/monit/monitrc"/>
|
||||||
<Python name="/etc/monit/services"/>
|
<Python name="/etc/monit/services"/>
|
||||||
<Path name="/etc/monit/conf.d/placeholder"/>
|
<Path name="/etc/monit/conf.d/placeholder"/>
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<FileInfo>
|
|
||||||
<Info owner='root' group='root' perms='0644'/>
|
|
||||||
</FileInfo>
|
|
|
@ -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
29
Python/etc/default/monit
Normal 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
|
||||||
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue