gluon-radv-filterd 609 B

12345678910111213141516171819202122
  1. #!/bin/sh /etc/rc.common
  2. USE_PROCD=1
  3. START=50
  4. DAEMON=/usr/sbin/gluon-radv-filterd
  5. start_service() {
  6. local threshold="$(lua -e 'print(require("gluon.site").radv_filterd.threshold(20))')"
  7. procd_open_instance
  8. procd_set_param command $DAEMON -i br-client -c RADV_FILTER -t $threshold
  9. procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
  10. procd_set_param netdev br-client
  11. procd_set_param stderr 1
  12. procd_close_instance
  13. }
  14. service_triggers() {
  15. procd_open_trigger
  16. procd_add_raw_trigger "interface.*" 1000 /etc/init.d/gluon-radv-filterd reload
  17. procd_close_trigger
  18. }