krb5kadmind.initd 710 B

12345678910111213141516171819202122232425262728
  1. #!/sbin/openrc-run
  2. # Copyright 2020 Hyperbola Project
  3. # Distributed under the terms of the GNU General Public License v2
  4. #---------------------------------------------------------------------------
  5. # This script starts/stops the MIT Kerberos 5 Admin daemon
  6. #---------------------------------------------------------------------------
  7. daemon="MIT Kerberos 5 Admin daemon"
  8. exec="/usr/sbin/kadmind"
  9. depend() {
  10. need krb5kdc
  11. use net
  12. }
  13. start() {
  14. ebegin "Starting $daemon"
  15. start-stop-daemon --start --quiet --exec ${exec} -- ${KADMIND_OPTS} 1>&2
  16. eend $? "Error starting $daemon"
  17. }
  18. stop() {
  19. ebegin "Stopping $daemon"
  20. start-stop-daemon --stop --quiet --exec ${exec} 1>&2
  21. eend $? "Error stopping $daemon"
  22. }