Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231105 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-p2p/btg/files/btgd-init (-2 / +15 lines)
Lines 1-7 Link Here
1
#!/sbin/runscript
1
#!/sbin/runscript
2
# Copyright 1999-2007 Gentoo Foundation
2
# Copyright 1999-2008 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-p2p/btg/files/btgd-init,v 1.3 2007/11/28 17:30:53 angelos Exp $ 
4
# $Header: $
5
6
opts="reload"
5
7
6
depend() {
8
depend() {
7
	need net
9
	need net
Lines 37-39 Link Here
37
	start-stop-daemon --stop --quiet --pidfile /var/run/btgdaemon.pid
39
	start-stop-daemon --stop --quiet --pidfile /var/run/btgdaemon.pid
38
	eend $?
40
	eend $?
39
}
41
}
42
43
reload() {
44
	if [ ! -f "/var/run/btgdaemon.pid" ]; then
45
		eerror "BTG Daemon is not running"
46
	return 1
47
	fi
48
	ebegin "Reloading BTG Daemon"
49
	start-stop-daemon --stop --oknodo --signal HUP \
50
		--pidfile /var/run/btgdaemon.pid --exec /usr/bin/btgdaemon
51
	eend $?
52
}

Return to bug 231105