www-servers/lighttpd: Prevent hang in initd
authorDaniel Campbell <zlg@gentoo.org>
Sun, 20 Nov 2016 10:17:29 +0000 (02:17 -0800)
committerDaniel Campbell <zlg@gentoo.org>
Sun, 20 Nov 2016 10:17:56 +0000 (02:17 -0800)
Prevents a hang on read-only filesystems, fixing bug 598468

Thanks, Marek Behun!

Gentoo-Bug: 598468
Gentoo-Bug-URL: https://bugs.gentoo.org/598468

Package-Manager: portage-2.3.2

www-servers/lighttpd/files/lighttpd.initd

index e345f726f9bdf9a127059860f5cb55406239eaae..1a4fa561e16b480a269e548bd1f839ae09efd50b 100644 (file)
@@ -5,7 +5,7 @@
 
 extra_started_commands="reload graceful"
 
-LIGHTTPD_PID="$($(which lighttpd) -pf ${LIGHTTPD_CONF} | grep pid | cut -d '=' -f 2 | tr -d \\\" | tr -d [:space:])"
+LIGHTTPD_PID="$(grep pid ${LIGHTTPD_CONF} | cut -d '=' -f 2 | tr -d \\\" | tr -d [:space:])"
 
 depend() {
        need net