summaryrefslogtreecommitdiff
path: root/net-mgmt/flowscan/files/flowscan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/flowscan/files/flowscan.sh')
-rw-r--r--net-mgmt/flowscan/files/flowscan.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/net-mgmt/flowscan/files/flowscan.sh b/net-mgmt/flowscan/files/flowscan.sh
deleted file mode 100644
index 08e88d0a35a8..000000000000
--- a/net-mgmt/flowscan/files/flowscan.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#! /bin/sh
-
-# rc script for flowscan
-# Andreas Klemm <andreas@FreeBSD.org>, So 25 Mär 2001 12:46:10 CEST
-# $FreeBSD$
-
-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 1
-fi
-
-awk=/usr/bin/awk
-bindir=$PREFIX/var/db/flows/bin
-grep=/usr/bin/grep
-kill=/bin/kill
-logfile=$PREFIX/var/db/flows/flowscan.log
-perl=/usr/bin/perl
-scandir=$PREFIX/var/db/flows
-
-case "$1" in
-'start')
- [ -x $bindir/flowscan ] \
- && ( cd $scandir \
- && $perl $bindir/flowscan \
- >> $logfile 2>&1 </dev/null \
- > /dev/null & ) \
- && echo -n " flowscan"
- ;;
-
-'stop')
- pid=`ps -ax | $grep "$perl $bindir/flowscan" | $awk '{ print $1 }'`
- if [ -n "$pid" ]; then
- echo "killing flowscan"
- $kill $pid
- fi
- ;;
-esac
-
-exit 0