[Bcfg2/.../mumudvb] Configuration "finale" pour mumudvb
On ajoute le bundler pour le paquet mumudvb On met une exception si le probe chie (peut etre qu'on peut faire ca plus clean) On appelle les nouveaux scripts de generation de la conf darcs-hash:20090410124245-c9953-87ad38835be5ca992b0009e944083128e7fd0812.gz
This commit is contained in:
parent
e562277dcd
commit
237347e141
3 changed files with 14 additions and 3 deletions
5
Bundler/mumudvb.xml
Normal file
5
Bundler/mumudvb.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<Bundle name="mumudvb">
|
||||
<!-- <Package name="mumudvb"/> -->
|
||||
<Service name="mumudvb"/>
|
||||
<ConfigFile name="/etc/default/mumudvb" owner="root" group="adm" perms="644"/>
|
||||
</Bundle>
|
|
@ -9,7 +9,7 @@ header('Fichier de configuration de mumudvb')
|
|||
@#
|
||||
@
|
||||
@#If you want to launch a command before mumudvb (for example for automatic configuration generation)
|
||||
@LAUNCH_BEFORE_MUMU="/usr/scripts/tv/genconf.sh"
|
||||
@LAUNCH_BEFORE_MUMU="/usr/scripts/tv/genconf/gen_conf.py"
|
||||
@
|
||||
@#Options for mumudvb
|
||||
@DAEMON_OPTS=""
|
||||
|
@ -21,7 +21,10 @@ header('Fichier de configuration de mumudvb')
|
|||
@#Ex : ADAPTERS="0 1 2 4"
|
||||
|
||||
dernierecarte=int(metadata.probes["cartesdvb"])
|
||||
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' '))
|
||||
try:
|
||||
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' '))
|
||||
except:
|
||||
cartesdesactivees=[]
|
||||
|
||||
adapters=""
|
||||
for i in range(0,dernierecarte):
|
||||
|
|
|
@ -165,7 +165,10 @@ service("vsftpd-federez",
|
|||
extra=["if failed host 138.231.136.129 port 21 protocol ftp timeout 30 seconds then restart"])
|
||||
|
||||
dernierecarte=int(metadata.probes["cartesdvb"])
|
||||
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' '))
|
||||
try:
|
||||
cartesdesactivees=map(lambda x : int(x),metadata.probes["cartesdvbdesactivees_local"].split(' '))
|
||||
except:
|
||||
cartesdesactivees=[]
|
||||
|
||||
if dernierecarte:
|
||||
print "# Il y a %d carte(s) DVB sur ce serveur dont %d cartes desactivee(s)\n" % (dernierecarte,len(cartesdesactivees))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue