rc.bind 902 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
  2. ##
  3. ## rc.bind -- Run-Commands for BIND Daemon
  4. ##
  5. %config
  6. bind_enable="yes"
  7. bind_log_numfiles="5"
  8. bind_log_minsize="512K"
  9. bind_log_complevel="9"
  10. %start -p 200 -u root
  11. if opServiceEnabled bind; then
  12. @l_prefix@/sbin/ndc start
  13. fi
  14. %stop -p 200 -u root
  15. if opServiceEnabled bind; then
  16. @l_prefix@/sbin/ndc stop
  17. fi
  18. %restart -u root
  19. if opServiceEnabled bind; then
  20. @l_prefix@/sbin/ndc restart
  21. fi
  22. %reload -u root
  23. if opServiceEnabled bind; then
  24. @l_prefix@/sbin/ndc reload
  25. fi
  26. %daily -u root
  27. if opServiceEnabled bind; then
  28. shtool rotate -f \
  29. -n${bind_log_numfiles} -s${bind_log_minsize} \
  30. -d -z${bind_log_complevel} -o@l_fsusr@ -o@l_fsgrp@ -m644 \
  31. -E '@l_prefix@/sbin/ndc restart' \
  32. @l_prefix@/var/bind/named.log
  33. fi