mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
mech: always run initctl in batch mode when in non-interactive mode
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
int core_commit_done(clicon_handle h, transaction_data td)
|
||||
{
|
||||
if (transaction_src(td) && system("initctl reload"))
|
||||
if (transaction_src(td) && system("initctl -b reload"))
|
||||
clicon_log(LOG_CRIT, "Failed to reload services");
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -46,7 +46,7 @@ int ietf_sys_tr_commit_hostname(cxobj *src, cxobj *tgt)
|
||||
free(old);
|
||||
|
||||
if (src)
|
||||
err = err ? : system("initctl touch sysklogd");
|
||||
err = err ? : system("initctl -b touch sysklogd");
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user