提交 f7422755 编写于 作者: C changcheng-weng 提交者: Gitee

update src/init_service.c.

上级 651300a2
......@@ -98,7 +98,7 @@ int ServiceStart(Service *service)
}
char* argv[] = {service->name, NULL};
char* env[] = {NULL};
char* env[] = {"LD_LIBRARY_PATH=/storage/app/libs", NULL};
if (execve(service->path, argv, env) != 0) {
printf("[Init] service %s execve failed! err %d.\n", service->name, errno);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册