diff options
author | andreas <andreas@FreeBSD.org> | 2001-03-25 14:24:42 +0000 |
---|---|---|
committer | andreas <andreas@FreeBSD.org> | 2001-03-25 14:24:42 +0000 |
commit | 5a72812a0934a57363a4f90794229dd60d3da390 (patch) | |
tree | 51e668a3a5232c9ed9b58e16f81284bff3e0a4d3 /net | |
parent | a042ad5694d0c77092f04454cfc713b538c9f8a1 (diff) | |
download | FreeBSD-ports-5a72812a0934a57363a4f90794229dd60d3da390.zip FreeBSD-ports-5a72812a0934a57363a4f90794229dd60d3da390.tar.gz |
- forgot somehow to add the cflowd.sh sample startup script $FILESDIR
- bump port revision, since port has now better functionality
Diffstat (limited to 'net')
-rw-r--r-- | net/cflowd/Makefile | 2 | ||||
-rw-r--r-- | net/cflowd/files/cflowd.sh | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/net/cflowd/Makefile b/net/cflowd/Makefile index 24aee6b..3445d98 100644 --- a/net/cflowd/Makefile +++ b/net/cflowd/Makefile @@ -7,7 +7,7 @@ PORTNAME= cflowd PORTVERSION= 2-1-b1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= net MASTER_SITES= ftp://ftp.caida.org/pub/cflowd/ DISTNAME= ${PORTNAME}-${PORTVERSION} diff --git a/net/cflowd/files/cflowd.sh b/net/cflowd/files/cflowd.sh new file mode 100644 index 0000000..e063398 --- /dev/null +++ b/net/cflowd/files/cflowd.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +# rc script for cflowd +# 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 + +case "$1" in +'start') + [ -x $PREFIX/sbin/cflowdmux -a -s $PREFIX/etc/cflowd.conf ] \ + && $PREFIX/sbin/cflowdmux $PREFIX/etc/cflowd.conf \ + && echo -n " cflowdmux" + sleep 2 + [ -x $PREFIX/sbin/cflowd -a -s $PREFIX/etc/cflowd.conf ] \ + && $PREFIX/sbin/cflowd $PREFIX/etc/cflowd.conf \ + && echo -n " cflowd" + sleep 2 + [ -x $PREFIX/sbin/cfdcollect -a -s $PREFIX/etc/cfdcollect.conf ] \ + && $PREFIX/sbin/cfdcollect $PREFIX/etc/cfdcollect.conf \ + && echo -n " cfdcollect" + ;; + +'stop') + for i in cfdcollect cflowd cflowdmux + do + sleep 2 + killall -15 $i && echo "graceful shutdown of $i" + done + ;; +esac + +exit 0 |