Hi,

I use a few fcgi programs with lighttpd. You might be interested in
the attached rc.d script that I use to run them from rc.d(8). Here's
an example that uses it to run Mercurial's hgweb frontend:

---------------------

#!/bin/sh

fcgi_prog="/var/www/hg.mindrot.org/hgweb.fcgi"
fcgi_sock="/var/www/run/hgweb.sock"
fcgi_pid="/var/www/run/hgweb.pid"

. /etc/rc.d/rc.fcgi

rc_cmd $1

---------------------

I'm sure it could be polished further, but it works well enough for me.
It might be handy enough to include in the spawn-fcgi package.

-d

Reply via email to