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.

18 lines
443 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2018-2019 Luiz Angelo Daros de Luca <luizluca@gmail.com>
  3. START=99
  4. USE_PROCD=1
  5. start_service() {
  6. procd_open_instance switchdev-poller
  7. procd_set_param command /usr/lib/switchdev-poller/switchdev-poller
  8. procd_set_param stdout 1
  9. procd_set_param stderr 0 # enable for extra debug info
  10. procd_set_param respawn 3600 5 5
  11. procd_close_instance
  12. }
  13. service_triggers() {
  14. procd_add_reload_trigger network
  15. }