From 454c7f2a77860abdcf34ed9796a7047de05ad66c Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Wed, 10 Jul 2002 18:43:44 +0000 Subject: tweaked --- net-p2p/gnunet/files/gnunet | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'net-p2p/gnunet/files') diff --git a/net-p2p/gnunet/files/gnunet b/net-p2p/gnunet/files/gnunet index df52d40b1834..60f8cbea2284 100644 --- a/net-p2p/gnunet/files/gnunet +++ b/net-p2p/gnunet/files/gnunet @@ -5,7 +5,6 @@ # 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. -# NOTE: I have not tested this script. depend() { need net @@ -14,13 +13,16 @@ depend() { start() { ebegin "Starting gnunetd" # -u username, -c path to gnunet.conf file - start-stop-daemon --start --quiet --exec /usr/local/bin/gnunetd -u gnunet \ - -c /var/lib/GNUnet/gnunet.conf + start-stop-daemon --start --quiet --background --exec /usr/bin/gnunetd \ + -- -u gnunet -c /var/lib/GNUnet/gnunet.conf eend $? "Failed to start gnunetd" } stop() { ebegin "Stopping gnunetd" - start-stop-daemon --stop --quiet --exec /usr/local/bin/gnunetd + # pointing file descriptors to /dev/null, because start-stop-daemon + # prints warnings that it cannot kill process forks, + # but they are already dead + start-stop-daemon --stop --quiet --user gnunet &>/dev/null eend $? "Failed to stop gnunetd" } -- cgit v1.2.3-65-gdbad