[pkg-lighttpd] tmpfs lighttpd patch

Jan Koester jan.koester at exustechnology.com
Tue May 15 10:50:52 UTC 2012


Hi guys,

this patch fixes the startproblem for Lighttpd on non cosistence Filsystems 
like tmpsfs.

initd_tmpfs.patch:
--- debian/lighttpd.init.orig   2011-12-19 22:27:07.000000000 +0000
+++ debian/lighttpd.init        2012-05-15 10:23:18.186074272 +0000
@@ -20,6 +20,7 @@
 DESC="web server"
 PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
+LOGFOLDER=/var/log/lighttpd
 
 DAEMON_OPTS="-f /etc/lighttpd/lighttpd.conf"
 
@@ -32,6 +33,13 @@
        $DAEMON -t $DAEMON_OPTS > /dev/null || exit $?
 }
 
+check_logfolder()
+{
+       if [ ! -d "$LOGFOLDER" ]; then
+           mkdir $LOGFOLDER
+        fi
+}
+
 if [ "$1" != status ]; then
        # be sure there is a /var/run/lighttpd, even with tmpfs
        # The directory is defined as volatile and may thus be non-existing
@@ -45,6 +53,7 @@
 
 case "$1" in
     start)
+        check_logfolder
        check_syntax
         log_daemon_msg "Starting $DESC" $NAME
         if ! start-stop-daemon --start --oknodo --quiet \

-- 

Mit freundlichen Grüßen / With best regards

Jan Koester
Technical Sales Engineer  / TSE

ExuS Technolgy AG
Jacob-Frerichs-Str. 8
D-27711 Osterholz-Scharmbeck
Germany

T: +49 4791 90 292-62(direct)
F: +49 4791 90 292-29
M: +49 177 320 355 1

E-Mail: jan.koester at exustechnology.com
Web: www.exustechnology.com

Vorstandsvorsitzender / Chief Executive Officer: Marco Schottke
Mitglieder des Vorstands / Members of the Board: Oliver Flathmann
Aufsichtsratsvorsitzender / Chairman of the Board: Heinz-Bolko Schottke
Registergericht / Court of Regestration: Walsrode: HRB 203259
UstID: DE235056752

Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail und der darin enthaltenen Informationen ist nicht
gestattet.

This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and delete this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.

-- 

*
ExuS Technology AG*
Jacob-Frerichs-Str. 8
D-27711 Osterholz-Scharmbeck
Germany

Vorstandsvorsitzender / Chief Executive Officer: Marco Schottke; 
Mitglieder des Vorstands / Members of the Board: Oliver Flathmann, Bernd 
Fahrenholz
Aufsichtsratsvorsitzender / Chairman of the Board: Heinz-Bolko Schottke
Registergericht / Court of Registration: Walsrode: HRB 203259  UstID: 
DE235056752

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail und der darin 
enthaltenen Informationen ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and delete this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.



More information about the pkg-lighttpd-maintainers mailing list