summaryrefslogtreecommitdiff
path: root/net/AquaGatekeeper/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-11-02 17:37:15 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-11-02 17:37:15 +0000
commit15c908ce36dec2f686c6832b2746eebe86d5c722 (patch)
tree94ae3d85184e0c84fd68b58c191a9a984dc98eb6 /net/AquaGatekeeper/files
parentUpdated to 1.0 (diff)
This is new port for AquaGatekeeper by The Aqua Group.
It can be used as H.323 gatekeeper, IP-to-IP voice gateway or proxy. It can be used to pass voice traffic from private networks to the Internet and vice versa when runs on the NAT box.It provides billing information and can optionally use RADUIS. PR: 58833 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
Notes
Notes: svn path=/head/; revision=92854
Diffstat (limited to 'net/AquaGatekeeper/files')
-rw-r--r--net/AquaGatekeeper/files/agk.sh.sample37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/AquaGatekeeper/files/agk.sh.sample b/net/AquaGatekeeper/files/agk.sh.sample
new file mode 100644
index 000000000000..e97c1a902e33
--- /dev/null
+++ b/net/AquaGatekeeper/files/agk.sh.sample
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+PREFIX=$(expr `realpath $0` : "\(/.*\)/etc/rc\.d/`basename $0`\$")
+PROG=$PREFIX/bin/AquaGatekeeper
+CFG=$PREFIX/etc/agk.cfg
+TIMEOUT=30
+
+case "$1" in
+start)
+ shift
+ su -m agk -c "[ -x $PROG -a -r $CFG ] &&
+ echo -n ' AquaGatekeeper' && $PROG -d --configuration=$CFG $@"
+ ;;
+stop)
+ shift
+ signal=-TERM
+ [ -n "$1" ] && signal="$1"
+ killall $signal AquaGatekeeper
+ [ $signal != -2 -a $signal != -INT ] && exit 0
+ i=1
+ while [ $i -le $TIMEOUT ]
+ do
+ ps -axc | grep -q AquaGatekeeper || break
+ i=$(($i+1))
+ sleep 1
+ done
+ ;;
+restart)
+ `realpath $0` stop -INT
+ `realpath $0` start
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop|restart}" >&2
+ ;;
+esac
+
+exit 0