From:
[email protected]
Package: geneweb
Version: 4.09-25
Severity: wishlist
Tags: patch
As you may know gwd can bind to a specific address. When running in
daemon mode it is sometimes desired to bind it to port 80 of only one
IP of the machine, to peacefully co-exist next to a real apache server.
That's all about the option "-a <addr>".
The following pacthes supposed to do just that. Be aware, however, that
the patch is only for observation, as it was neither thoroughly tested
nor the fluff removed (like language 'hu').
This is for init.d/geneweb:
--- geneweb 2004-03-03 15:11:29 +0100
+++ gene2web 2004-08-12 11:48:38 +0200
@@ -9,15 +9,16 @@
GENEWEBDB=/var/lib/geneweb
GENEWEBUSER=geneweb
DAEMON=/usr/bin/gwd
-WRAPPER=/usr/lib/geneweb/gwd.wrapper
-NAME=geneweb
+WRAPPER=/usr/lib/geneweb/gwd.wrapper2
+NAME=geneweb2
LOGFILE=/var/log/$NAME.log
# Defaults
# The port which the daemon listens to
-PORT=2317
+PORT=80
+ADDR=193.262.4.1
# The default language
-LANG=en
+LANG=hu
# Run Mode : if anything else than "daemon", no daemon will be
# launched automatically
RUN_MODE="Always on"
@@ -26,7 +27,7 @@
[ -r /etc/default/geneweb ] && . /etc/default/geneweb
# Export variables so that they may be used by the wrapper script
-export LANG PORT LOGFILE NAME DAEMON GENEWEBDB GENEWEBDOC GENEWEBSHARE GENEWEBOPTS
+export LANG PORT LOGFILE NAME DAEMON GENEWEBDB GENEWEBDOC GENEWEBSHARE GENEWEBOPTS ADDR
trap "" 1
This is for usr/lib/geneweb/gwd.wrapper:
--- gwd.wrapper 2004-05-17 23:34:48 +0200
+++ gwd.wrapper2 2004-08-12 11