krb5: moved to github
[openwrt.org/packages.git] / net / krb5kdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh /etc/rc.common
# Copyright (C) 2009 OpenWrt.org

START=60

start() {
	mkdir -p /var/tmp
	mkdir -p /etc/krb5kdc
	
	[ -f /etc/krb5kdc/principal ] || ( echo; echo ) | kdb5_util create -s
	
	/usr/sbin/krb5kdc
	/usr/sbin/kadmind
}

stop() {
	killall krb5kdc 2> /dev/null
	killall kadmind 2> /dev/null
}

comments