
Il faudrait plutôt faire ça avec un service monit duquel dépendent tous les enfants. Comme pour le initscript de mumudvb, c'est mal foutu et il n'y a pas de possibilité de restart un seul process.
27 lines
615 B
Python
27 lines
615 B
Python
# -*- coding: utf-8; mode: python -*-
|
|
header()
|
|
|
|
info["owner"] = "root"
|
|
info["group"] = "root"
|
|
info["perms"] = 0644
|
|
|
|
|
|
# /etc/arpwatch.conf: Debian-specific way to watch multiple interfaces.
|
|
# Fichier gere par Bcfg2 (module Cfg)
|
|
#
|
|
# Format of this configuration file is:
|
|
#
|
|
#<dev1> <arpwatch options for dev1>
|
|
#<dev2> <arpwatch options for dev2>
|
|
#...
|
|
#<devN> <arpwatch options for devN>
|
|
#
|
|
# You can set global options for all interfaces by editing
|
|
# /etc/default/arpwatch
|
|
|
|
include("arpwatch")
|
|
for vlan in watched_vlans:
|
|
iface = 'eth0'
|
|
if vlan <> 1:
|
|
iface += '.%d' % vlan
|
|
print("%s -m root@crans.org" % iface)
|