1
0
mirror of https://git.fsfe.org/FSFE/fsfe-local-build.git synced 2026-04-18 10:23:05 +02:00

better define which lighttpd instance to look for

This commit is contained in:
2020-10-02 14:50:20 +02:00
parent d0ea6c0226
commit 65aa5a10a4

View File

@@ -173,7 +173,7 @@ for ((i=1; i <= $numargs; i++)); do
echo_INFO "$HTTPD webserver already seems to be running."
fi
elif [ "$HTTPD" == "lighttpd" ]; then
if [ ! $(pgrep lighttpd) ]; then # lighttpd
if [ ! $(pgrep -f "lighttpd.*${HTTPD_conf}") ]; then # lighttpd
echo_INFO "Starting $HTTPD webserver"
/usr/sbin/lighttpd -f "$HTTPD_conf"
else