mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00:00
Allow services to be started without absolute path, trust $PATH
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
619bd03551
commit
6ab9c8fad6
1 file changed
+1
-1
+1
-1
@@ -339,7 +339,7 @@ static int service_start(svc_t *svc)
|
|||||||
else if (svc_is_runtask(svc))
|
else if (svc_is_runtask(svc))
|
||||||
status = exec_runtask(svc->cmd, args);
|
status = exec_runtask(svc->cmd, args);
|
||||||
else
|
else
|
||||||
status = execv(svc->cmd, args);
|
status = execvp(svc->cmd, args);
|
||||||
|
|
||||||
#ifdef INETD_ENABLED
|
#ifdef INETD_ENABLED
|
||||||
if (svc_is_inetd_conn(svc)) {
|
if (svc_is_inetd_conn(svc)) {
|
||||||
|
|||||||
Reference in new issue
Block a user