summaryrefslogtreecommitdiff
path: root/pcr/openrc-net/ypserv
blob: be1dc42e189af0ff5277d11e980565cd3b594c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/ypserv/files/ypserv,v 1.4 2006/04/10 20:00:18 eradicator Exp $

depend() {
	need net portmap
	use domainname
}

start() {
	ebegin "Starting NIS Server"
	YOPTS=""
	if [ -n "${YPSERV_OPTS}" ]; then YOPTS="-- ${YPSERV_OPTS}"; fi
	start-stop-daemon --start --quiet --exec /usr/sbin/ypserv ${YOPTS}
	eend $?
}

stop() {
	ebegin "Stopping NIS Server"
	start-stop-daemon --stop --quiet --exec /usr/sbin/ypserv
	eend $?
}