summaryrefslogtreecommitdiff
blob: e32999f2a30f4794ff332f27bacb64f76d51f2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

start(){
	ebegin "Starting ypd"
	export YPD_PORT
	export YPD_HOST
	export YPD_PORT_HTTPS
	export YPD_PORT_SSH
	export YPD_PORT_HSTOP3G

	start-stop-daemon --start --background --make-pidfile --pidfile /var/run/ypd.pid  --quiet --exec /usr/bin/ypd
	eend $?
}

stop(){
	ebegin "Stopping ypd"
	start-stop-daemon --stop --quiet --exec /usr/bin/ypd
	eend $?
}