3 # GNUnet Start/Stop GNUnet server
6 # description: GNUnet is an anonymous distributed secure network \
7 # this server is required to connect to the network, \
8 # it will open a TCP port to communicate with the \
9 # GUI and an UDP port to communicate with the world. \
10 # The configuration file /etc/gnunet.conf will be used.
13 # Source function library.
14 . /etc/rc.d/init.d/functions
17 . /etc/sysconfig/network
19 # Check that networking is up.
20 if is_yes "${NETWORKING}"; then
21 if [ ! -f /var/lock/subsys/network ]; then
22 msg_network_down "GNUnet"
30 [ -e /etc/gnunet.conf ] || exit 0
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/gnunet ]; then
38 daemon gnunetd -u gnunet
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gnunet
42 msg_already_running "GNUnet"
47 if [ -f /var/lock/subsys/gnunet ]; then
50 rm -f /var/lock/subsys/gnunet >/dev/null 2>&1
52 msg_not_running "GNUnet"
56 # See how we were called.
72 echo $"Usage: $0 {start|stop|status|restart|reload}"