nsd.init 330 B

12345678910111213141516
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2014 OpenWrt.org
  3. START=60
  4. USE_PROCD=1
  5. PROG=/usr/sbin/nsd
  6. start_service() {
  7. mkdir -p /var/db/nsd
  8. chown network /var/db/nsd
  9. chmod 640 /etc/nsd/*.conf 2>/dev/null
  10. chgrp network /etc/nsd/*.conf 2>/dev/null
  11. procd_open_instance
  12. procd_set_param command "$PROG" -d
  13. procd_close_instance
  14. }