2143363b118967a04095eca99a8e4fa20f0ab432
[openwrt/svn-archive/archive.git] / net / krb5 / files / krb5kdc
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2009 OpenWrt.org
3
4 START=60
5
6 start() {
7 mkdir -p /var/tmp
8 mkdir -p /var/krb5kdc
9
10 [ -f /var/krb5kdc/principal ] || ( echo; echo ) | kdb5_util create -s
11
12 /usr/sbin/krb5kdc
13 }
14
15 stop() {
16 killall krb5kdc 2> /dev/null
17 }