appfilter.init revision af168f6f
1#!/bin/sh /etc/rc.common 2. /usr/share/libubox/jshn.sh 3. /lib/functions.sh 4 5START=96 6USE_PROCD=1 7OAFD_BIN="/usr/bin/oafd" 8 9service_triggers() 10{ 11 procd_add_reload_trigger "appfilter" 12} 13 14stop_service(){ 15 killall -9 oafd 16 rmmod oaf 17} 18 19start_service(){ 20 gen_class.sh /etc/appfilter/feature.cfg 21 insmod oaf 22 /usr/bin/oaf_rule reload 23 procd_open_instance 24 procd_set_param respawn 60 5 5 25 procd_set_param stderr 1 26 procd_set_param command "$OAFD_BIN" 27 procd_close_instance 28} 29