diff --git a/Python/etc/arpwatch.conf b/Python/etc/arpwatch.conf index 3bc01c4..0181887 100644 --- a/Python/etc/arpwatch.conf +++ b/Python/etc/arpwatch.conf @@ -1,4 +1,5 @@ # -*- coding: utf-8; mode: python -*- +header() info["owner"] = "root" info["group"] = "root" diff --git a/Python/etc/monit/services b/Python/etc/monit/services index aa2dd65..74f40a5 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -66,7 +66,18 @@ service("backuppc-server", service("isc-dhcp-server", pidf="dhcpd") -# bind's pidfile has changed on squeeze +if has('arpwatch'): + include("arpwatch") + # TODO modeliser ceci par un seul service pour éviter des races débiles + # au moment des restart ... + for vlan in watched_vlans: + iface = 'eth0' + if vlan <> 1: + iface += '.%d' % vlan + service(None, name='arpwatch-%s' % iface, + init='arpwatch', + ) + service("bind", init="bind9", pidf="named/named")