summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-04-21 14:18:40 +0000
committerJeroen Roovers <jer@gentoo.org>2011-04-21 14:18:40 +0000
commit21d99645733252d2bcef8235fcf2ec20ff67d6d6 (patch)
tree7c0e48ea47bf34310cea9fe8d3408a85b7f0b6a5 /net-nds/ypserv/files
parentOld. Vulnerable. (diff)
downloadgentoo-2-21d99645733252d2bcef8235fcf2ec20ff67d6d6.tar.gz
gentoo-2-21d99645733252d2bcef8235fcf2ec20ff67d6d6.tar.bz2
gentoo-2-21d99645733252d2bcef8235fcf2ec20ff67d6d6.zip
Version bump. Use pidfile now that the RPC server supports it.
(Portage version: 2.2.0_alpha30/cvs/Linux i686)
Diffstat (limited to 'net-nds/ypserv/files')
-rw-r--r--net-nds/ypserv/files/rpc.ypxfrd-2.2322
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..b1526aa696d8
--- /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
+# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/files/rpc.ypxfrd-2.23,v 1.1 2011/04/21 14:18:40 jer Exp $
+
+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 $?
+}