krb5kdc 308 B

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