appfilter.init revision 69ba02bd
1#!/bin/sh /etc/rc.common 2 3START=96 4USE_PROCD=1 5path=/usr/bin 6 7service_triggers() { 8 procd_add_reload_trigger 'appfilter' 9} 10 11start_instance() { 12 config_get_bool enable $1 'enable' '0' 13 14 command $path/gen_class.sh /etc/appfilter/feature.cfg 15 command $path/appfilter.sh 16 17 [ $enable -ne 0 ] || return 1 18 19 procd_open_instance 20 procd_set_param command $path/appfilter 21 procd_set_param respawn 22 procd_set_param stderr 1 23 procd_close_instance 24} 25 26start_service() { 27 config_load 'appfilter' 28 config_foreach start_instance 'global' 29} 30