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