crans_bcfg2/Python/etc/cron.d/generate
2013-05-29 01:04:13 +02:00

15 lines
343 B
Python

# -*- 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)