blob: a4be65594c86323c8a37290d7b4ee4401bf2f04d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/arpwatch/files/arpwatch.init,v 1.5 2004/07/14 22:58:57 agriffis Exp $
depend() {
need net
use cupsd
}
start() {
for IFACE in ${IFACES}
do
ebegin "Starting arpwatch on ${IFACE}"
DATAFILE=/var/arpwatch/${IFACE}.dat
if [ ! -f ${DATAFILE} ]; then
touch ${DATAFILE}
fi
/usr/sbin/arpwatch -i $IFACE -f /var/arpwatch/$IFACE.dat ${OPTIONS}
result=$?
eend $result
done
}
stop() {
ebegin "Stopping arpwatch"
killall arpwatch > /dev/null
result=$?
eend $result
}
|