diff options
Diffstat (limited to 'sys-freebsd/freebsd-usbin/files/rpcbind.initd')
-rwxr-xr-x | sys-freebsd/freebsd-usbin/files/rpcbind.initd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-usbin/files/rpcbind.initd b/sys-freebsd/freebsd-usbin/files/rpcbind.initd new file mode 100755 index 0000000..69451f1 --- /dev/null +++ b/sys-freebsd/freebsd-usbin/files/rpcbind.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/files/rpcbind.initd,v 1.3 2006/12/07 18:00:15 uberlord Exp $ + +depend() { + need localmount + use net + before inetd + before xinetd +} + +start() { + ebegin "Starting rpcbind" + start-stop-daemon --start --exec /usr/sbin/rpcbind + local ret=$? + eend ${ret} + + # without, if a service depending on portmap is started too fast, + # connecting to portmap will fail -- azarah + # doing that for rpcbind, too -- flameeyes + sleep 1 + return ${ret} +} + +stop() { + ebegin "Stopping rpcbind" + start-stop-daemon --stop --exec /usr/sbin/rpcbind + eend $? +} |