5 config_get init
"$1" init
6 config_get
exec "$1" exec
7 config_get
test "$1" test
9 echo "$2" > "/var/run/luci-reload-status"
11 [ -n "$init" ] && reload_init
"$2" "$init" "$test"
12 [ -n "$exec" ] && reload_exec
"$2" "$exec" "$test"
22 echo "Reloading $service... "
23 ( $cmd "$@" ) 2>/dev
/null
1>&2
24 [ -n "$ok" -a "$?" != "$ok" ] && echo '!!! Failed to reload' $service '!!!'
29 [ -x /etc
/init.d
/$2 ] && /etc
/init.d
/$2 enabled
&& {
30 echo "Reloading $1... "
31 /etc
/init.d
/$2 reload
>/dev
/null
2>&1
32 [ -n "$3" -a "$?" != "$3" ] && echo '!!! Failed to reload' $1 '!!!'
36 lock
"/var/run/luci-reload"
41 config_foreach apply_config
$i $i
44 rm -f "/var/run/luci-reload-status"
45 lock
-u "/var/run/luci-reload"