diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-06-29 01:51:38 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-06-29 01:51:38 +0000 |
commit | 45b07c7e7bf6b953f4b9d1db3e9621e44cc72bfc (patch) | |
tree | 58774a0ff185fa78688577a6cae597068d68dcf6 /net-p2p | |
parent | version bump (Manifest recommit) (diff) | |
download | gentoo-2-45b07c7e7bf6b953f4b9d1db3e9621e44cc72bfc.tar.gz gentoo-2-45b07c7e7bf6b953f4b9d1db3e9621e44cc72bfc.tar.bz2 gentoo-2-45b07c7e7bf6b953f4b9d1db3e9621e44cc72bfc.zip |
fix rc script
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/gnunet/files/gnunet | 19 | ||||
-rw-r--r-- | net-p2p/gnunet/gnunet-0.6.2b.ebuild | 4 |
2 files changed, 14 insertions, 9 deletions
diff --git a/net-p2p/gnunet/files/gnunet b/net-p2p/gnunet/files/gnunet index e6302a25f997..6e071441c347 100644 --- a/net-p2p/gnunet/files/gnunet +++ b/net-p2p/gnunet/files/gnunet @@ -11,18 +11,21 @@ depend() { } start() { - ebegin "Starting gnunetd" + ebegin "Starting GNUnet" # -u username, -c path to gnunet.conf file start-stop-daemon --start --quiet --background --exec /usr/bin/gnunetd \ -- -u gnunet -c /var/lib/GNUnet/gnunet.conf - eend $? "Failed to start gnunetd" + eend $? "Failed to start GNUnet" } stop() { - ebegin "Stopping 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" + ebegin "Stopping GNUnet" + killall gnunetd + eend $? "Failed to stop GNUnet" +} + +restart() { + svc_stop + sleep 3 + svc_start } diff --git a/net-p2p/gnunet/gnunet-0.6.2b.ebuild b/net-p2p/gnunet/gnunet-0.6.2b.ebuild index 5722ac9181d6..5b3f3bf95875 100644 --- a/net-p2p/gnunet/gnunet-0.6.2b.ebuild +++ b/net-p2p/gnunet/gnunet-0.6.2b.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.6.2b.ebuild,v 1.1 2004/06/29 01:25:10 squinky86 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/gnunet/gnunet-0.6.2b.ebuild,v 1.2 2004/06/29 01:51:38 squinky86 Exp $ inherit libtool @@ -58,6 +58,8 @@ src_install() { newins contrib/gnunet.root gnunet.conf docinto contrib dodoc contrib/* + exeinto /etc/init.d + doexe ${FILESDIR}/gnunet } pkg_postinst() { |