Bugzilla – Attachment 330771 Details for
Bug 559534
Installing lighttpd patch crashes webyast
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
rclighttpd.diff
rclighttpd.diff (text/plain), 2.04 KB, created by
Martin Vidner
on 2009-12-03 14:29:58 UTC
(
hide
)
Description:
rclighttpd.diff
Filename:
MIME Type:
Creator:
Martin Vidner
Created:
2009-12-03 14:29:58 UTC
Size:
2.04 KB
patch
obsolete
>--- /etc/init.d/lighttpd 2009-11-23 17:33:19.000000000 +0100 >+++ /etc/init.d/lighttpd.new 2009-12-03 16:23:19.000000000 +0100 >@@ -127,6 +127,8 @@ > > # Read config > . $LIGHTTPD_CONFIG >+# FIXME read that from $CONFIG_FILE, FIXME read that from $LIGHTTPD_CONFIG >+PID_FILE=/var/run/lighttpd.pid > > # Source LSB init functions > # providing start_daemon, killproc, pidofproc, >@@ -175,7 +177,7 @@ > ## Start daemon with startproc(8). If this fails > ## the return value is set appropriately by startproc. > umask ${LIGHTTPD_UMASK:-077} >- startproc -e $LIGHTTPD_BIN $LIGHTTPD_PARAMS >+ startproc -p $PID_FILE -e $LIGHTTPD_BIN $LIGHTTPD_PARAMS > > # Remember status and be verbose > rc_status -v >@@ -185,7 +187,7 @@ > ## Stop daemon with killproc(8) and if this fails > ## killproc sets the return value according to LSB. > >- killproc -TERM $LIGHTTPD_BIN >+ killproc -TERM -p $PID_FILE $LIGHTTPD_BIN > > # Remember status and be verbose > rc_status -v >@@ -222,7 +224,7 @@ > > echo -n "Reload service lighttpd " > ## if it supports it: >- killproc -HUP $LIGHTTPD_BIN >+ killproc -HUP -p $PID_FILE $LIGHTTPD_BIN > #touch /var/run/lighttpd.pid > rc_status -v > >@@ -236,7 +238,7 @@ > > # If it supports signaling: > echo -n "Reload service lighttpd " >- killproc -HUP $LIGHTTPD_BIN >+ killproc -HUP -p $PID_FILE $LIGHTTPD_BIN > #touch /var/run/lighttpd.pid > rc_status -v > >@@ -258,7 +260,7 @@ > # 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.) > > # NOTE: checkproc returns LSB compliant status values. >- checkproc $LIGHTTPD_BIN >+ checkproc -k -p $PID_FILE $LIGHTTPD_BIN > # NOTE: rc_status knows that we called this init script with > # "status" option and adapts its messages accordingly. > rc_status -v >@@ -268,7 +270,7 @@ > ## argument to this init script which is required for a reload. > ## Note: probe is not (yet) part of LSB (as of 1.9) > >- test /etc/lighttpd/lighttpd.conf -nt /var/run/lighttpd.pid && echo reload >+ test /etc/lighttpd/lighttpd.conf -nt $PID_FILE && echo reload > ;; > *) > echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 559534
:
330735
|
330736
|
330771
|
330994
|
331020
|
331050
|
331340