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.

25 lines
451 B

  1. #!/bin/sh /etc/rc.common
  2. START=50
  3. USE_PROCD=1
  4. LOG_D=/var/log
  5. RUN_D=/var/run
  6. CHR_D=/var/lib/dhcp-fwd
  7. PID_F=$RUN_D/dhcp-fwd.pid
  8. start_service() {
  9. [ -d $LOG_D ] || mkdir -p $LOG_D
  10. [ -d $RUN_D ] || mkdir -p $RUN_D
  11. [ -d $CHR_D ] || mkdir -p $CHR_D && chown dhcp-fwd:dhcp-fwd $CHR_D -R
  12. procd_open_instance
  13. procd_set_param command dhcp-fwd -n
  14. procd_set_param respawn
  15. procd_close_instance
  16. }
  17. service_triggers()
  18. {
  19. procd_add_reload_trigger "dhcp"
  20. }