[pkg-lighttpd] r425 - lighttpd/trunk/debian

Olaf van der Spek olafvdspek-guest at alioth.debian.org
Tue May 18 12:01:20 UTC 2010


Author: olafvdspek-guest
Date: 2010-05-18 12:01:17 +0000 (Tue, 18 May 2010)
New Revision: 425

Modified:
   lighttpd/trunk/debian/lighttpd.init
Log:
don't try to make /var/run/lighttpd when invoked with status (closes: #538662)


Modified: lighttpd/trunk/debian/lighttpd.init
===================================================================
--- lighttpd/trunk/debian/lighttpd.init	2010-05-18 11:58:42 UTC (rev 424)
+++ lighttpd/trunk/debian/lighttpd.init	2010-05-18 12:01:17 UTC (rev 425)
@@ -24,10 +24,12 @@
 
 set -e
 
-# be sure there is a /var/run/lighttpd, even with tmpfs
-mkdir -p /var/run/lighttpd > /dev/null 2> /dev/null
-chown www-data:www-data /var/run/lighttpd
-chmod 0750 /var/run/lighttpd
+if [ "$1" != status ]; then
+	# be sure there is a /var/run/lighttpd, even with tmpfs
+	mkdir -p /var/run/lighttpd > /dev/null 2> /dev/null
+	chown www-data:www-data /var/run/lighttpd
+	chmod 0750 /var/run/lighttpd
+fi
 
 . /lib/lsb/init-functions
 




More information about the pkg-lighttpd-maintainers mailing list