blob: 4d2da5e7c2f9d60fce47a412d9193a7b8ab454f1 (
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
31
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# description: Gnunet is an anonymous distributed secure network
# this server is required to connect to the network,
# it will open a TCP port to communicate with the
# GUI and an UDP port to communicate with the world.
depend() {
need net
}
start() {
ebegin "Starting GNUnet"
# -u username, -c path to gnunet.conf file
start-stop-daemon --start --quiet --background --exec /usr/bin/gnunetd \
-- -u gnunet -c /etc/gnunet.conf
eend $? "Failed to start GNUnet"
}
stop() {
ebegin "Stopping GNUnet"
killall gnunetd
eend $? "Failed to stop GNUnet"
}
restart() {
svc_stop
sleep 3
svc_start
}
|