summaryrefslogtreecommitdiffstats
path: root/network/gogoc/rc.gogoc
diff options
context:
space:
mode:
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
+