diff -up orig/lighttpd mod/lighttpd --- orig/lighttpd 2011-12-21 09:01:44.454957457 +0100 +++ mod/lighttpd 2011-12-21 09:08:40.274958927 +0100 @@ -4,15 +4,7 @@ . /etc/rc.d/functions -pid_file='/var/run/lighttpd/lighttpd-angel.pid' -get_pid() { - if [ -r "${pid_file}" ]; then - cat "${pid_file}" - else - pgrep -f /usr/sbin/lighttpd-angel - fi -} test_config() { stat_busy 'Checking configuration' @@ -32,11 +24,6 @@ test_config() { stat_die fi - local piddir=$(dirname "${pid_file}") - if [ ! -d "${piddir}" ]; then - install -d -m755 -o http -g http "${piddir}" - fi - stat_done } @@ -49,7 +36,6 @@ start() { if [ $? -gt 0 ]; then stat_die else - echo $! > "${pid_file}" add_daemon lighttpd stat_done fi @@ -65,7 +51,6 @@ stop() { if [ $? -gt 0 ]; then stat_fail else - [ -f "${pid_file}" ] && rm -f "${pid_file}" rm_daemon lighttpd stat_done fi @@ -78,7 +63,6 @@ gracefull-stop() { if [ $? -gt 0 ]; then stat_fail else - [ -f "${pid_file}" ] && rm -f "${pid_file}" rm_daemon lighttpd stat_done fi