add suggested changes to send logs to stdout

Signed-off-by: edgd1er <edgd1er@hotmail.com>
This commit is contained in:
edgd1er
2022-01-28 08:12:40 +01:00
parent 06d6b74c63
commit 2db09515d7
6 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,6 @@
s6-echo "Stopping lighttpd-error-log"
pid=$(ps -C cat -o pid=,args= |grep -oP "([0-9]+).+error\.log" |cut -f1 -d" ")
if [[ -n ${pid} ]]; then
echo "Killing ${pid}"
kill -9 ${pid}
fi
s6-echo "Stopped lighttpd-error-log"