docker-pi-hole/src/s6/debian-root/etc/s6-overlay/s6-rc.d/lighttpd-error-log/finish

9 lines
229 B
Plaintext
Executable File

#!/command/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"