summaryrefslogtreecommitdiff
path: root/network/gogoc/rc.gogoc
blob: b76fdf5edbe73b95c49b7eb3aa08b84bdff063f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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