From 258e3475e0eda930f424d3141cb3ba9fc0f87a9a Mon Sep 17 00:00:00 2001 From: Daniel Campbell Date: Sun, 20 Nov 2016 02:17:29 -0800 Subject: [PATCH] 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 --- www-servers/lighttpd/files/lighttpd.initd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-servers/lighttpd/files/lighttpd.initd b/www-servers/lighttpd/files/lighttpd.initd index e345f726f9bdf..1a4fa561e16b4 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