mirror of
https://gitee.com/openharmony/startup_init
synced 2025-03-03 01:56:22 +00:00
commit
51a1c65843
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user