From: Daniel Campbell Date: Sun, 20 Nov 2016 10:17:29 +0000 (-0800) Subject: www-servers/lighttpd: Prevent hang in initd X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=258e3475e0eda930f424d3141cb3ba9fc0f87a9a;p=gentoo.git www-servers/lighttpd: Prevent hang in initd 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 --- diff --git a/www-servers/lighttpd/files/lighttpd.initd b/www-servers/lighttpd/files/lighttpd.initd index e345f726f9bd..1a4fa561e16b 100644 --- a/www-servers/lighttpd/files/lighttpd.initd +++ b/www-servers/lighttpd/files/lighttpd.initd @@ -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