summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2002-07-10 18:43:44 +0000
committerRyan Phillips <rphillips@gentoo.org>2002-07-10 18:43:44 +0000
commit454c7f2a77860abdcf34ed9796a7047de05ad66c (patch)
tree42b15154545db9981bcd8960d97eb82e87ffd418 /net-p2p/gnunet/files
parentNew package. submitted by Ilian Zarov. Fixes #4298 (diff)
downloadhistorical-454c7f2a77860abdcf34ed9796a7047de05ad66c.tar.gz
historical-454c7f2a77860abdcf34ed9796a7047de05ad66c.tar.bz2
historical-454c7f2a77860abdcf34ed9796a7047de05ad66c.zip
tweaked
Diffstat (limited to 'net-p2p/gnunet/files')
-rw-r--r--net-p2p/gnunet/files/gnunet10
1 files changed, 6 insertions, 4 deletions
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"
}