jow 2148d045e6 [packages] krb5: move persistent database to /etc (#6475)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19124 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-13 20:36:55 +00:00

18 lines
259 B
Bash

#!/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
}
stop() {
killall krb5kdc 2> /dev/null
}