arpwatch/rc.arpwatch

changeset 733
0db5307f7f51
parent 64
6aeed4ef015a
equal deleted inserted replaced
0:8dfc6923130e 1:9b7ac7f69000
8 arpwatch_log_prolog="true" 8 arpwatch_log_prolog="true"
9 arpwatch_log_epilog="true" 9 arpwatch_log_epilog="true"
10 arpwatch_log_numfiles="10" 10 arpwatch_log_numfiles="10"
11 arpwatch_log_minsize="1M" 11 arpwatch_log_minsize="1M"
12 arpwatch_log_complevel="9" 12 arpwatch_log_complevel="9"
13 arpwatch_iface="-i lo0" 13 arpwatch_iface="lo0"
14 arpwatch_ipnet="-n 127.0.0.0/8" 14 arpwatch_ipnet="127.0.0.0/8"
15 15
16 %common 16 %common
17 arpwatch_pidfile="@l_prefix@/var/arpwatch/run/arpwatch.pid" 17 arpwatch_pidfile="@l_prefix@/var/arpwatch/run/arpwatch.pid"
18 arpwatch_signal () { 18 arpwatch_signal () {
19 [ -f $arpwatch_pidfile ] && kill -$1 `cat $arpwatch_pidfile` 19 [ -f $arpwatch_pidfile ] && kill -$1 `cat $arpwatch_pidfile`
32 32
33 %start -u @l_susr@ 33 %start -u @l_susr@
34 rcService arpwatch enable yes || exit 0 34 rcService arpwatch enable yes || exit 0
35 rcService arpwatch active yes && exit 0 35 rcService arpwatch active yes && exit 0
36 @l_prefix@/sbin/arpwatch \ 36 @l_prefix@/sbin/arpwatch \
37 $arpwatch_iface \ 37 -i $arpwatch_iface \
38 $arpwatch_ipnet \ 38 -n $arpwatch_ipnet \
39 >$arpwatch_pidfile 2>&1 39 >$arpwatch_pidfile 2>&1
40 40
41 %stop -u @l_susr@ 41 %stop -u @l_susr@
42 rcService arpwatch enable yes || exit 0 42 rcService arpwatch enable yes || exit 0
43 rcService arpwatch active no && exit 0 43 rcService arpwatch active no && exit 0

mercurial