File: argus-server.ppp.ip-up

package info (click to toggle)
argus 1%3A2.0.6.fixes.1-16.3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,016 kB
  • ctags: 4,025
  • sloc: ansic: 23,022; sh: 5,734; makefile: 380; yacc: 255; lex: 234
file content (33 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (4)
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
31
32
33
#!/bin/sh
#
# This script is called when ppp connects to the network.
# The script calls argus to listen to the current ppp interface.
#
# Original Author: Yotam Rubin <yotam@makif.omer.k12.il>
# Date: Tue,  3 Jul 2001 20:47:11 +0300

CONFIG=/etc/argus.conf
ARGUS=/usr/sbin/argus
DEFAULTS=/etc/default/argus-server
LOGFILE=/var/log/argus/argus.log
PIDFILE=/var/run/argus.$PPP_IFACE

test -f $DEFAULTS || exit 1

. $DEFAULTS

# Check whether this should should be started.
if [ "$STARTUP" = "boot" ] || [ "$STARTUP" = "none" ]; then
    exit 1
fi

test -f $CONFIG || exit 1
test -f $ARGUS  || exit 1 

if [ ! -f $PIDFILE ]; then
    $ARGUS -F $CONFIG -i $PPP_IFACE -w $LOGFILE -n $PIDFILE -d
    exit 0
fi

exit 1