Files
docker-pi-hole/s6/debian-root/etc/services.d/lighttpd-error-log/finish
2022-01-28 08:12:40 +01:00

9 lines
229 B
Plaintext

#!/usr/bin/with-contenv bash
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
kill -9 ${pid}
fi
s6-echo "Stopped lighttpd-error-log"