heimdal.init 368 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. #FWINIT 70
  3. . /etc/rc.conf
  4. case $1 in
  5. autostop) ;;
  6. autostart)
  7. test x"${kdc:-NO}" = x"NO" && exit 0
  8. exec sh $0 start
  9. ;;
  10. start)
  11. /usr/sbin/kdc
  12. /usr/sbin/kadmind &
  13. /usr/sbin/kpasswdd &
  14. ;;
  15. stop)
  16. killall kdc
  17. killall kadmind
  18. killall kpasswdd
  19. ;;
  20. restart)
  21. sh $0 stop
  22. sh $0 start
  23. ;;
  24. *)
  25. echo "Usage: $0 {start | stop | restart}"
  26. exit 1
  27. ;;
  28. esac
  29. exit $?