[58372] trunk/dports/www/lighttpd/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Sep 27 16:13:24 PDT 2009


Revision: 58372
          http://trac.macports.org/changeset/58372
Author:   ryandesign at macports.org
Date:     2009-09-27 16:13:20 -0700 (Sun, 27 Sep 2009)
Log Message:
-----------
lighttpd: use an executable startupitem instead of a script one and start lighttpd in non-daemon mode so daemondo can track when it dies and restart it; closes #18545 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/www/lighttpd/Portfile

Modified: trunk/dports/www/lighttpd/Portfile
===================================================================
--- trunk/dports/www/lighttpd/Portfile	2009-09-27 22:57:14 UTC (rev 58371)
+++ trunk/dports/www/lighttpd/Portfile	2009-09-27 23:13:20 UTC (rev 58372)
@@ -4,7 +4,7 @@
 PortSystem 1.0
 name              lighttpd
 version           1.4.23
-revision          1
+revision          2
 categories        www
 platforms         darwin
 maintainers       kallisys.net:pguyot
@@ -31,13 +31,9 @@
 # Startup item.
 set lighttpd_config_name   lighttpd.conf
 set lighttpd_config        ${prefix}/etc/${name}/${lighttpd_config_name}
-set lighttpd_pidfile_name  lighttpd.pid
-set lighttpd_pidfile       ${prefix}/var/run/${lighttpd_pidfile_name}
 
 startupitem.create  yes
-startupitem.init    "PIDFILE=${lighttpd_pidfile}"
-startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
-startupitem.stop    "kill \$(cat \$PIDFILE)"
+startupitem.executable ${prefix}/sbin/lighttpd -D -f ${lighttpd_config}
 
 destroot.keepdirs   ${destroot}${prefix}/var/log/lighttpd \
                     ${destroot}${prefix}/www/htdocs \
@@ -61,9 +57,7 @@
 post-install {
   ui_msg "\n Before starting lighttpd it must be configured.\n\
     Lighttpd is configured by editing ${lighttpd_config}\n\
-    There's a sample config file at ${lighttpd_config}.default.\n\
-    Please note that the launchd daemon relies on the PID being at\n\
-    ${lighttpd_pidfile}."
+    There's a sample config file at ${lighttpd_config}.default."
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090927/2933d045/attachment.html>


More information about the macports-changes mailing list