summaryrefslogtreecommitdiff
blob: e52e8d9ee804fcd751c9966bf765316e6c8aff88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/sfs/files/sfssd,v 1.2 2004/03/04 19:26:40 vapier Exp $

depend() {
	need net portmap nfs
}

start() {
	ebegin "Starting SFS server daemon"
	start-stop-daemon --start --quiet --exec /sbin/sfssd 1>&2
	eend $?
}

stop() {
	# Stopping/restarting will likely cause any connected SFS clients
	# to hang messily until they are restarted.	 Just keep this in
	# mind, as I do not believe that the current version has a
	# work-around.

	ebegin "Stopping SFS server daemon"
	start-stop-daemon --stop --quiet --exec /sbin/sfssd 1>&2
	eend $?
}