summaryrefslogtreecommitdiffstats
path: root/extra/heimdal/heimdal-kdc.init
blob: 753a101c3011ea488fc91a5adf987bad6c2ef32f (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/app-crypt/heimdal/files/heimdal-kdc,v 1.2 2004/09/13 15:40:34 dragonheart Exp $

depend() {
	need net
	after logger
}

start() {
	ebegin "Starting heimdal kdc"
	start-stop-daemon --start --quiet --exec \
		/usr/sbin/kdc -- --detach
	eend $?
}

stop() {
	ebegin "Stopping heimdal kdc"
	start-stop-daemon --stop --quiet --exec \
		/usr/sbin/kdc
	eend $?
}