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

Collapse All | Expand All

(-)fms (-2 / +7 lines)
Lines 3-11 Link Here
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/fms/files/fms,v 1.3 2009/02/12 18:07:25 tommy Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-p2p/fms/files/fms,v 1.3 2009/02/12 18:07:25 tommy Exp $
5
5
6
# Check for OpenRC/Baselayout 2 - see bug #270646
7
is_openrc() {
8
    [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]
9
}
10
6
start() {
11
start() {
7
	ebegin "Starting FMS"
12
	ebegin "Starting FMS"
8
	if [[ -f /etc/init.d/sysfs ]]; then
13
	if is_openrc; then
9
		start-stop-daemon -S -u freenet:freenet -d /var/freenet/fms -b -x /usr/bin/fms
14
		start-stop-daemon -S -u freenet:freenet -d /var/freenet/fms -b -x /usr/bin/fms
10
		eend $?
15
		eend $?
11
	else
16
	else
Lines 17-23 Link Here
17
22
18
stop() {
23
stop() {
19
	ebegin "Stopping FMS"
24
	ebegin "Stopping FMS"
20
	if [[ -f /etc/init.d/sysfs ]]; then
25
	if is_openrc; then
21
		start-stop-daemon -K -u freenet:freenet -d /var/freenet/fms /usr/bin/fms
26
		start-stop-daemon -K -u freenet:freenet -d /var/freenet/fms /usr/bin/fms
22
		eend $?
27
		eend $?
23
	else
28
	else

Return to bug 273138