commit:     258e3475e0eda930f424d3141cb3ba9fc0f87a9a
Author:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 20 10:17:29 2016 +0000
Commit:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 10:17:56 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=258e3475

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 e345f72..1a4fa56 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

Reply via email to