diff options
author | freaj <freaj@riseup.net> | 2015-03-30 10:36:00 +0200 |
---|---|---|
committer | freaj <freaj@riseup.net> | 2015-03-30 10:36:00 +0200 |
commit | 7385c6143c1b587bca68deade6e5989d11879767 (patch) | |
tree | 6ccef2617293e9afd03c80d5de22fd8f9c260c70 /pcr/openrc-net/ypserv | |
parent | 41c9dc8729840f45f174a14a08703e04d1f5717e (diff) | |
download | abslibre-7385c6143c1b587bca68deade6e5989d11879767.tar.gz abslibre-7385c6143c1b587bca68deade6e5989d11879767.tar.bz2 abslibre-7385c6143c1b587bca68deade6e5989d11879767.zip |
openrc-net-20150330-1: updating version
Diffstat (limited to 'pcr/openrc-net/ypserv')
-rw-r--r-- | pcr/openrc-net/ypserv | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/openrc-net/ypserv b/pcr/openrc-net/ypserv new file mode 100644 index 000000000..be1dc42e1 --- /dev/null +++ b/pcr/openrc-net/ypserv @@ -0,0 +1,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 $? +} |