summaryrefslogtreecommitdiff
path: root/net/tspc2/files/tspc2.sh.in
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-12 15:41:48 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-12 15:41:48 +0000
commita4f2f7f34c0d59fca9b994831c7cd0d4ea4f1ee5 (patch)
tree8d5085606383a0b18e7c8f1ecf631b1921c9e4cd /net/tspc2/files/tspc2.sh.in
parent- Update to 4.57 (diff)
Instead of a Web interface, which is usually offered by traditional tunnel
brokers, Freenet6 uses an innovative model based on the TSP Client. The TSP Client is software that usually runs on a PC and that implements the Tunnel Setup Protocol (TSP). The TSP Client is used to automatically negotiate a configured tunnel between a PC or router and the Freenet6 tunnel broker, making IPv6 easy to install and maintain. The TSP Client source code is licensed under the GPL. A commercial license is also available. PR: ports/83260 Submitted by: Linas Valiukas <shirshegsm@gmail.com>
Diffstat (limited to 'net/tspc2/files/tspc2.sh.in')
-rw-r--r--net/tspc2/files/tspc2.sh.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/net/tspc2/files/tspc2.sh.in b/net/tspc2/files/tspc2.sh.in
new file mode 100644
index 000000000000..8c2b03c47973
--- /dev/null
+++ b/net/tspc2/files/tspc2.sh.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+case "$1" in
+
+start)
+ %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
+ echo -n ' tspc2'
+ ;;
+
+stop)
+ killall -TERM tspc
+ echo -n ' tspc2'
+ ;;
+
+restart)
+ killall -TERM tspc
+ %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
+ echo 'tspc2 restarted'
+ ;;
+
+*)
+ echo "Usage: ${0##*/}: { start | stop | restart }" >&2
+ exit 64
+ ;;
+
+esac