5 config_get init "$1" init
6 config_get exec "$1" exec
8 [ -n "$init" ] && reload_init "$2" "$init"
9 [ -n "$exec" ] && reload_exec "$2" "$exec"
14 echo -n "Reloading $1... "
15 $2 >/dev/null 2>&1 && echo "done." || echo "failed!"
20 [ -x /etc/init.d/$2 ] && /etc/init.d/$2 enabled && {
21 echo -n "Reloading $1... "
22 /etc/init.d/$2 reload >/dev/null 2>&1 && echo "done." || echo "failed!"
30 config_foreach apply_config $i