diff --git a/Bundler/monit.xml b/Bundler/monit.xml index b16f4fc..1af4031 100644 --- a/Bundler/monit.xml +++ b/Bundler/monit.xml @@ -1,5 +1,5 @@ - + diff --git a/Cfg/etc/default/monit/info.xml b/Cfg/etc/default/monit/info.xml deleted file mode 100644 index 28fd470..0000000 --- a/Cfg/etc/default/monit/info.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/Cfg/etc/default/monit/monit b/Cfg/etc/default/monit/monit deleted file mode 100644 index 49a2b96..0000000 --- a/Cfg/etc/default/monit/monit +++ /dev/null @@ -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 diff --git a/Python/etc/default/monit b/Python/etc/default/monit new file mode 100644 index 0000000..b6df015 --- /dev/null +++ b/Python/etc/default/monit @@ -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 +""" +