提交 f8bf360a 编写于 作者: C cheng_jinsong

Add timer_start/timer_stop parameter to service control parameter table.

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 645e2c28
......@@ -265,7 +265,7 @@ int StopServiceTimer(const char *serviceName)
return -1;
}
if (SystemSetParameter("ohos.servicectrl", value) != 0) {
if (SystemSetParameter("ohos.servicectrl.timer_stop", value) != 0) {
BEGET_LOGE("Failed to set parameter \' ohos.servicectrl.timer_stop \' with value \' %s \'", value);
return -1;
}
......
......@@ -38,6 +38,7 @@ const ParamCmdInfo *GetServiceCtl(size_t *size)
{"ohos.servicectrl.save", "save.bootevent", "save.bootevent" },
{"ohos.servicectrl.bootchart", "bootchart", "bootchart" },
{"ohos.servicectrl.timer_start", "timer_start", "timer_start " },
{"ohos.servicectrl.timer_stop", "timer_stop", "timer_stop" },
};
*size = ARRAY_LENGTH(installParam);
return installParam;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册