summaryrefslogtreecommitdiff
blob: 9444178848eabfb240bbd9ff199f5670c2453847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

start() {
	if [ "`ps -ef | grep 'fms --daemon'`" ]; then
		eerror "FMS appears to still be running."
		return 1
	fi
	cd /var/freenet/fms
	su -s /bin/sh -c "./fms --daemon" freenet
	eend $?
}

stop() {
	pkill -u freenet -f "fms --daemon"
	eend 0
}