summaryrefslogtreecommitdiffstats
path: root/network/gogoc/rc.gogoc
diff options
context:
space:
mode:
author Michael Johnson2010-08-14 21:48:04 +0200
committer dsomero2010-08-14 21:48:04 +0200
commit4effc4c5457582d716ab181483b080fa5d91c9a9 (patch)
treee361306eaebedc5dab71a328292465558136be10 /network/gogoc/rc.gogoc
parent8c8e49fd2b4dc1eb062efc47cccea243d5464106 (diff)
downloadslackbuilds-4effc4c5457582d716ab181483b080fa5d91c9a9.tar.gz
network/gogoc: Added (gogo6 Freenet6 Client aka gogoCLIENT)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/gogoc/rc.gogoc')
-rw-r--r--network/gogoc/rc.gogoc30
1 files changed, 30 insertions, 0 deletions
diff --git a/network/gogoc/rc.gogoc b/network/gogoc/rc.gogoc
new file mode 100644
index 0000000000..b76fdf5edb
--- /dev/null
+++ b/network/gogoc/rc.gogoc
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Start/stop/restart the Freenet6 Client
+
+# Comment this out if you don't want the client to auto-accept the server cert
+AUTOACCEPT="-y"
+
+
+gogoc_start() {
+ /usr/bin/gogoc -b -f /etc/gogoc.conf $AUTOACCEPT
+}
+
+gogoc_stop() {
+ killall gogoc
+}
+
+case "$1" in
+'start')
+ gogoc_start
+ ;;
+'stop')
+ gogoc_stop
+ ;;
+'restart')
+ gogoc_stop
+ gogoc_start
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac
+