slackbuilds_ponce/network/gogoc/rc.gogoc
Michael Johnson 4effc4c545 network/gogoc: Added (gogo6 Freenet6 Client aka gogoCLIENT)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
2010-08-14 15:48:04 -04:00

30 lines
409 B
Bash

#!/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