You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
455 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2016 Michael Hanselmann
  3. START=61
  4. USE_PROCD=1
  5. start_service() {
  6. find /etc/unbound \! \( -user unbound -group unbound \) \
  7. -exec chown unbound:unbound {} \;
  8. find /etc/unbound \( -perm +027 -o \! -perm -600 \) \
  9. -exec chmod u=rwX,g=rX,o= {} \;
  10. procd_open_instance
  11. procd_set_param command /usr/sbin/unbound
  12. procd_append_param command -d # don't daemonize
  13. procd_set_param respawn
  14. procd_close_instance
  15. }