EasyCwmp - easycwmp
View Issue Details
0000050easycwmp[All Projects] Helppublic2015-04-28 14:592015-05-02 17:51
resolvedno change required 
0000050: common_execute_command_in_apply_service

I have set some own Parameters over genieacs into my router. The Parameters are my own.
Now i want to restart my service to get my changes applied.
I Could do this in every script with the "common_delay_service_restart_in_apply_service" cmd from /functions/common
But this is not very smart to restart the service at every function call when a lot of parameters are changed.
I saw that it is possible to call the function "common_execute_command_in_apply_service" but theres is now description how it works!

Do I have to send an apply_service action as seen in easycwmp.sh?
Do I have to write my own scripts?

Kind regards

No tags attached.
Issue History
2015-04-28 14:59feckertNew Issue
2015-05-01 12:47mohamed.kallelNote Added: 0000190
2015-05-01 12:48mohamed.kallelNote Edited: 0000190bug_revision_view_page.php?bugnote_id=190#r176
2015-05-02 17:51mohamed.kallelStatusnew => resolved
2015-05-02 17:51mohamed.kallelResolutionopen => no change required
2015-05-02 17:51mohamed.kallelAssigned To => mohamed.kallel

2015-05-01 12:47   
(edited on: 2015-05-01 12:48)
You ca refer to the lan_device and wan_device scripts to see where to call the common_delay_service_restart_in_apply_service and common_execute_command_in_apply_service function.

These functions allow to specify the commands to execute and the services to restart at the end of the session with ACS and they do not execute them immediately.
And if you make set of many parameters that require the same service restart, then the service will restart only one time at the end of the session