[generate] Ajout du cron dans bcfg2

This commit is contained in:
Valentin Samir 2013-05-29 01:04:13 +02:00
parent 00bc3a1dd9
commit f34143dfa9
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# -*- coding: utf-8; mode: python -*-
info["owner"] = "root"
info["group"] = "root"
info["perms"] = 0644
include("ip")
import random
random.seed(admip())
header("Régénération de la configuration des services")
min=random.randint(0,9)
print "%s-%s/10 * * * * root /usr/scripts/gestion/gen_confs/generate.py > /dev/null" % (min, 50+min)