Redirect stdout/stderr according to .conf when stopping SysV service

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2020-02-05 12:31:21 +01:00
1 parent 99901782ff
commit f38299bfca
1 file changed
+1
+1
View File
@@ -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;