[generate] Ajout du cron dans bcfg2
This commit is contained in:
parent
00bc3a1dd9
commit
f34143dfa9
3 changed files with 26 additions and 0 deletions
15
Python/etc/cron.d/generate
Normal file
15
Python/etc/cron.d/generate
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue