diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/openrc-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c index de570e56..d8038637 100644 --- a/src/rc/openrc-init.c +++ b/src/rc/openrc-init.c @@ -54,7 +54,7 @@ static pid_t do_openrc(const char *runlevel) sigemptyset(&signals); sigprocmask(SIG_SETMASK, &signals, NULL); printf("Starting %s runlevel\n", runlevel); - execl("/sbin/openrc", "/sbin/openrc", runlevel, NULL); + execlp("openrc", "openrc", runlevel, NULL); perror("exec"); break; default: @@ -89,7 +89,7 @@ static void init(const char *default_runlevel) static void handle_reexec(char *my_name) { - execl(my_name, my_name, "reexec", NULL); + execlp(my_name, my_name, "reexec", NULL); return; } |