appfilter.init revision e1b21d21
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_BIN 16} 17 18start_service(){ 19 gen_class.sh /etc/appfilter/feature.cfg 20 insmod oaf 21 procd_open_instance 22 procd_set_param respawn 60 5 5 23 procd_set_param stderr 1 24 procd_set_param command "$OAFD_BIN" 25 procd_close_instance 26} 27