mirror of
https://github.com/troglobit/finit.git
synced 2026-10-06 07:43:43 +07:00
Redirect stdout/stderr according to .conf when stopping SysV service
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -500,6 +500,7 @@ static int service_stop(svc_t *svc)
|
||||
pid = fork();
|
||||
switch (pid) {
|
||||
case 0:
|
||||
redirect(svc);
|
||||
exec_runtask(svc->cmd, args);
|
||||
_exit(0);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user