durusmail: quixote-users: Starting a live Dulcinea site at boot time on Debian
Starting a live Dulcinea site at boot time on Debian
2004-08-31
Starting a live Dulcinea site at boot time on Debian
2004-08-31
Starting a live Dulcinea site at boot time on Debian
Neil Schemenauer
2004-08-31
On Tue, Aug 31, 2004 at 04:43:38PM -0500, Matt Campbell wrote:
> In particular, it looks like mems-exchange.org is running Debian,
> so I wonder how they do it.

That site requires an SSL password so Apache has to be started
manually.

> On a live server, is it better to have Apache
> started by the Dulcinea site script (using an Apache configuration
> generated by Dulcinea) or by the init.d script that comes with Debian's
> apache package?

If you want to use Dulcinea's automatically generated Apache config
file the I think you want to use 'site'.  For another one of our
other sites that runs on Red Hat, we use the cgi2scgi program that
comes with the latest version of the 'scgi' package.  That has
proved to be extremely easy.  The only Apache configuration
necessary was a file in /etc/httpd/conf.d containing one line:

    ScriptAlias / /www/cgi-bin/somesitename.cgi/


> For Durus and the SCGI server, is it best to make a symlink from
> /etc/init.d/site to /usr/bin/site and use update-rc.d to create
> symlinks in /etc/rc*.d?  If not, what's the best way to set it up?

I would probably go with a trival shell script.  I'm attaching the
one we use on Red Hat.

  Neil


#!/bin/sh
#
# chkconfig: 2345 85 15
# description:  (Durus database and application server)

PATH=/www/trunk/dulcinea/bin:$PATH

case "$1" in
  start)
        site start
        ;;
  stop)
        site stop
        ;;
  status)
        site
        ;;
  restart|reload)
        site restart
        ;;
  condrestart)
        site restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
        exit 1
esac

reply