dhcp-fwd.init 451 B

12345678910111213141516171819202122232425
  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. }