krb5kdc.initd 574 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/openrc-run
  2. #---------------------------------------------------------------------------
  3. # This script starts/stops the MIT Kerberos 5 KDC
  4. #---------------------------------------------------------------------------
  5. daemon="MIT Kerberos 5 KDC"
  6. exec="/usr/bin/krb5kdc"
  7. depend() {
  8. use net
  9. }
  10. start() {
  11. ebegin "Starting $daemon"
  12. start-stop-daemon --start --quiet --exec ${exec} -- ${KDC_OPTS} 1>&2
  13. eend $? "Error starting $daemon"
  14. }
  15. stop() {
  16. ebegin "Stopping $daemon"
  17. start-stop-daemon --stop --quiet --exec ${exec} 1>&2
  18. eend $? "Error stopping $daemon"
  19. }