mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Restart services after CUD operation from cli
This commit is contained in:
parent
641a98fc37
commit
280e2f2bc3
1 changed files with 10 additions and 3 deletions
|
|
@ -101,8 +101,11 @@ char *cmd_set_exec_func(struct cmd_input in, union cmd_result *res __attribute__
|
||||||
cwmp_free_all_list_param_fault(&faults_list);
|
cwmp_free_all_list_param_fault(&faults_list);
|
||||||
return icwmp_strdup(fault);
|
return icwmp_strdup(fault);
|
||||||
}
|
}
|
||||||
if (transaction_id)
|
if (transaction_id) {
|
||||||
cwmp_transaction_commit();
|
cwmp_transaction_commit();
|
||||||
|
icwmp_restart_services();
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -135,8 +138,10 @@ char *cmd_add_exec_func(struct cmd_input in, union cmd_result *res)
|
||||||
cwmp_transaction_abort();
|
cwmp_transaction_abort();
|
||||||
return fault;
|
return fault;
|
||||||
}
|
}
|
||||||
if (transaction_id)
|
if (transaction_id) {
|
||||||
cwmp_transaction_commit();
|
cwmp_transaction_commit();
|
||||||
|
icwmp_restart_services();
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -172,8 +177,10 @@ char *cmd_del_exec_func(struct cmd_input in, union cmd_result *res __attribute__
|
||||||
cwmp_transaction_abort();
|
cwmp_transaction_abort();
|
||||||
return fault;
|
return fault;
|
||||||
}
|
}
|
||||||
if (transaction_id)
|
if (transaction_id) {
|
||||||
cwmp_transaction_commit();
|
cwmp_transaction_commit();
|
||||||
|
icwmp_restart_services();
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue