I create a script in: $ /etc/init.d/wt
#! /bin/sh
### BEGIN INIT INFO
# Provides: wt
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Wt Web Sites
# Description: Enable All Wt Web Sites.
### END INIT INFO
(brief) Start... Stop... etc...
# Wt Sites
echo " * Starting Wt C++";
www="/srv/www/";
cd ${www}
{www}site01.wt --approot ${www} --docroot ${www} --http-addr 0.0.0.0
--http-port 11000 > /dev/null 2>&1 &
Add using: # update-rc.d wt defaults
And Every time I start my server... Automatically UP all Wt Sites
(wthttp OK).
Apache...
I create '/run/wt' just ONE time:
$ mkdir /srv/www/run/wt;
$ sudo chown www-data:www-data /srv/www/run/wt -R;
Apache2 start in boot and all my Wt Apache Sites its working too (wtfcgi
OK).
* (I prefer work in /srv/www/ and not /var/www/)
On 09/01/2011 07:41 AM, Pau Garcia i Quiles wrote:
> Let's start with some facts:
> - the Wt webapp needs to be launched somehow
> - in the general case (production), it will be started automatically
>
> Case 1: wthttp webapp
> Case 2: wtfcgi webapp
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest