Developing lightweight computation at the DSG edge

Commit 613533eb authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Restart gwck after restarting or reloading the network. Closes #262.

parent 43c21b6e
......@@ -57,6 +57,10 @@ configure() {
#Reloading network to avoid problems with next functions
/etc/init.d/network reload
if /etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
#Configuring networking
echo "[Configuring networking]"
......
......@@ -28,6 +28,10 @@
echo "[$(date)] There is no interface working, restarting network and bmx6."
logread > /tmp/bmx6_crash_$(date +%Y%m%d_%H%M).log
/etc/init.d/network restart
if /etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
/etc/init.d/bmx6 restart
}
}
......@@ -50,6 +50,10 @@ configure_wifi() {
qmp_configure_wifi_initial
qmp_configure_wifi
/etc/init.d/network reload
if /etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
}
apply_netserver() {
......@@ -61,6 +65,10 @@ configure_network() {
[ -f "/etc/init.d/olsrd" ] && /etc/init.d/olsrd restart
bmx6 -c --configReload || /etc/init.d/bmx6 restart
/etc/init.d/network reload
if /etc/init.d/gwck enabled
then
/etc/init.d/gwck restart
fi
/etc/init.d/dnsmasq restart
apply_netserver
}
......
......@@ -113,7 +113,7 @@ end
--! @brief Restart the network daemon
function network.restart_daemon()
os.execute('/etc/init.d/network restart')
os.execute('/etc/init.d/network restart; /etc/init.d/gwck enabled && /etc/init.d/gwck restart')
end
return network
......@@ -115,7 +115,7 @@ end
function m.on_commit(self,map)
http.redirect("/luci-static/resources/qmp/wait_short.html")
luci.sys.call('(/etc/qmp/qmp_control.sh configure_wifi ; /etc/init.d/network reload)&')
luci.sys.call('(/etc/qmp/qmp_control.sh configure_wifi ; /etc/init.d/network reload; /etc/init.d/gwck enabled && /etc/init.d/gwck restart)&')
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment