diff options
Diffstat (limited to 'net-nds/ypserv/files/rpc.ypxfrd-2.23')
-rw-r--r-- | net-nds/ypserv/files/rpc.ypxfrd-2.23 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-nds/ypserv/files/rpc.ypxfrd-2.23 b/net-nds/ypserv/files/rpc.ypxfrd-2.23 new file mode 100644 index 000000000000..ae1f92e1b3d4 --- /dev/null +++ b/net-nds/ypserv/files/rpc.ypxfrd-2.23 @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net portmap ypserv +} + +start() { + ebegin "Starting rpc.ypxfrd" + YOPTS="" + if [ -n "${YPXFRD_OPTS}" ]; then YOPTS="-- ${YPXFRD_OPTS}"; fi + start-stop-daemon --start --quiet --pidfile /var/run/ypxfrd.pid --exec /usr/sbin/rpc.ypxfrd ${YOPTS} + eend $? +} + +stop() { + ebegin "Stopping rpc.ypxfrd" + start-stop-daemon --stop --quiet --pidfile /var/run/ypxfrd.pid --exec /usr/sbin/rpc.ypxfrd + eend $? +} |