--- /etc/rc.d/lighttpd 2010-08-30 02:12:33.000000000 -0500 +++ /tmp/lighttpd 2010-11-03 20:25:05.079943092 -0500 @@ -113,6 +113,9 @@ restart) test_config stop + while [ -n "$(get_pid)" ]; do + sleep 1 + done start ;; status)