Use order from /etc/rc.d when doing service reloads/restarts#23
Use order from /etc/rc.d when doing service reloads/restarts#23okraits wants to merge 1 commit intopivasoftware:masterfrom
Conversation
|
For OpenWRT system, the restart of service is done by the function common_uci_track_restart_services(). This function determine automatically the service to restart in OpenWRT. So the "apply_service_tmp_file" is useless for OpenWRT. You should get an empty file. If you are working with "apply_service_tmp_file" that means that you called (in your data model) the functions: If you are working with OpenWRT, So you have to refer to the function common_uci_track_restart_services() and change it in order to restart services in order |
|
Beside that, Your change has to take account that the "$apply_service_tmp_file" does not contains only services to restart. It could contains also commands. So your changes will skip all commands in the "$apply_service_tmp_file" file |
So far, the services restart order when running easycwmp apply service is rather random and doesn't comply with the order defined in /etc/rc.d. This commit fixes that.