File: argus-server.ppp.ip-down

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 (31 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
#
# This script is called when the PPP interface is brought down.
# The script terminates the running argus process.
#
# Author: Yotam Rubin <yotam@makif.omer.k12.il>
# Date: Mon, 12 Nov 2001 20:46:10 +0200

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

test -f $DEFAULTS || exit 1

. $DEFAULTS

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

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

kill `cat $PIDFILE` > /dev/null 2>&1 
rm -f "$PIDFILE"

exit 0