We've actually had this working for awhile now but because of some hardware issues we had to rebuild our system. these instructions are for w...@. But you adjust for file paths, naming convention, etc. it works equally well on Ubuntu 9.0.4.

*Configuring ScmBug to run multiple daemons to support integration of multiple Bugzilla/Subversion database pairs.*

· Make a copy of "ScmBug/sbin/scmbug_daemon.pl" in the same directory and rename it "bgzl_test_db_daemon.pl". · Open "bgzl_test_db_daemon.pl" in your preferred text editor. o Immediately following the file's header comments, insert this line of code: $ENV{'PROJECT'} = "bgzl_test_db";
o    Save and close the file.
· Make a copy of "ScmBug/etc/scmbug/scmbug_daemon.conf" in the same directory and rename it "bgzl_test_db_daemon.conf". · Open "bgzl_test_db_daemon.conf" in your preferred text editor. o Find the line "daemon_port => 3872,". Change port number (3872) needs to a 4 digit value that is not being used by any other instance of ScmBug/Subversion/Bugzilla/MySQL.
o    Change each of the following fields to these values.
   database_name => 'bgzl_test_db',
   database_username => 'bgzl_usr',
   database_password => '<your pwd>',

o    Save and close the file.
· Make a copy of "ScmBug/etc/init.d/scmbug-server.bat" in the same directory and rename it "bgzl_test_db.bat".
·    Open "bgzl_test_db.bat" in your preferred text editor.
o Find the line "H:/Scmbug/sbin/scmbug_daemon.pl" "H:/Scmbug/etc/scmbug/daemon.conf". o Change it to line "H:/Scmbug/sbin/bgzl_test_db_daemon.pl" "H:/Scmbug/etc/scmbug/bgzl_test_db_daemon.conf".
o    Save and close the file.
· Execute the "bgzl_test_db.bat" (just double-click on the file). This will open another Command window. If this new window does not stay open then you need to review the error log file C:\Temp\ bgzl_test_db_daemon.log
·    In the Command Window:  Type "H:" and press the Enter key.
·    Type "cd \ScmBug\bin" and press the Enter key.
·    Verify that the prompt is "H:\ScmBug\Bin>".
·    Type the following:
scmbug_install_glue.pl --scm=Subversion --product=<name of the product you defined> --repository=file:///H:/SVN/bgzl_test_db --bug=<your bug number> --daemon=127.0.0.1 --binary-paths="D:/Subversion,D:/Subversion/bin,D:/Bugzilla,D:/Cygwin/bin" NOTE: If your Product Name contains spaces (" "), you must enclose it with quotation marks.
·    Press the Enter key.
·    Terminate  bgzl_test_db.bat
·    Open \SVN\<your database name>\hooks\etc\ScmBug\glue.conf
·    Search for "# Minimum number of characters log message."
·    Set enabled to 0 and size to 10
· Change log_body_regex => '^\s*bug.*?:\s*(.*)' to log_body_regex => '[Bb]ug.*?:\s*(.*)' · Change log_bugid_regex => '^\s*bug\s*([\d|\s|,|#]*?):', to log_bugid_regex => '[Bb]ug\s*([\d|\s|,|#]*?):',
·    Save and close file.
· Execute the "ScmBug/etc/init.d/bgzl_test_db.bat" (just double-click on the file). This will open another Command window. If this new window does not stay open then you need to review the error log file C:\Temp\ bgzl_test_db_daemon.log


     *Martin Goff*

Software Development Alternatives, Inc.
[email protected] <mailto:[email protected]>
928-632-9946 (work)
928-632-9943 (fax)

"Effective teaching is the essence of leadership..."




Martin Goff wrote:
Thorsten,

Yes. We are hosting Bugzilla/Subversion for more than one client and for our own in-house development. Since all of our clients have proprietary code/data etc., we must maintain strict isolation.


      *Martin Goff*

Software Development Alternatives, Inc.
[email protected] <mailto:[email protected]>
928-632-9946 (work)
928-632-9943 (fax)

"Effective teaching is the essence of leadership..."




Thorsten Schöning wrote:
Guten Tag Martin Goff,
am Montag, 3. August 2009 um 18:18 schrieben Sie:

As near as I can tell this means we need to run a separate instance of
the Scmbug daemon (with its own specialized daemon.conf) for each Bugzilla/SVN Product pair. This means we will need to run upwards of 20
instances of the ScmBug daemon.

Just because I'm interested, what's your use case? Do you want to host
Bugzilla instances and svn repositories for customers or why do you
need this kind of isolation by using separate Bugzilla instances?

Mit freundlichen Grüßen,

Thorsten Schöning

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

_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to