blob: 861cdcdfe6d1e2d6ab97cf910fff4daaf141ca1b (
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
26
27
28
|
#!/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-nds/ypserv/files/ypserv.rc,v 1.2 2004/03/06 03:44:14 vapier Exp $
depend() {
need net portmap
}
checkconfig() {
[ -n "$YP_DOMAIN" ] && return 0
eerror "You need to setup YP_DOMAIN in /etc/conf.d/ypserv"
return 1
}
start() {
checkconfig || return 1
ebegin "Starting NIS Server"
ypdomainname "$YP_DOMAIN"
start-stop-daemon --start --quiet --exec /usr/sbin/ypserv
eend $?
}
stop() {
ebegin "Stopping NIS Server"
start-stop-daemon --stop --quiet --exec /usr/sbin/ypserv
eend $?
}
|