How to run multiple school instance in a single server

Asked by Rizwan

Hello,

Do we have documentation and technical capability to run multiple school tool instance in a single server. I need to support community schools and this functionality will help provide individual schooltool instances dedicated to each school

I need to know how to configure and setup multiple school instances of Schooltool in one physical/VM (Virtual Machine) server.

Thank you

Rizwan Ashraf

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom Hoffman (tom-hoffman) said :
#1

This is possible, and not very difficult, but not really documented... I'll see if I can get someone who knows how to do it to write down the steps...

Revision history for this message
Rizwan (riz-sbia) said :
#2

I thank you sincerely for best of your support and help here Tom. Kindly keep me posted of the solution.

Sincerely,
Rizwan Ashraf

----- Original Message ----
From: Tom Hoffman <email address hidden>
To: <email address hidden>
Sent: Mon, February 15, 2010 11:30:03 AM
Subject: Re: [Question #101177]: How to run multiple school instance in a single server

Your question #101177 on SchoolTool changed:
https://answers.edge.launchpad.net/schooltool/+question/101177

Tom Hoffman posted a new comment:
This is possible, and not very difficult, but not really documented...
I'll see if I can get someone who knows how to do it to write down the
steps...

--
You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Gediminas Paulauskas (menesis) said :
#4

It is not very easy to make multiple instances in Natty, it was easier
before with schooltool-common package, but I have not found a good
solution yet.

SchoolTool instances are defined in /etc/schooltool. Copy the standard one::

 $ sudo cp -r /etc/schooltool/standard /etc/schooltool/another

Edit the configuration file and replace or add prefixes to have
different file names::

 $ sudo vim /etc/schooltool/another/schooltool.conf
 ...
 site-definition /etc/schooltool/another/site.zcml
 ...
 <filestorage>
   path /var/lib/schooltool/another-Data.fs
 </filestorage>
 ...
 error-log-file /var/log/schooltool/another-error.log
 web-access-log-file /var/log/schooltool/another-web-access.log

You do not need to create any of those files.

Change the port to a different one than standard::

 $ sudo vim /etc/schooltool/another/paste.ini
 ...
 port = 7082

Copy and edit the init script::

 $ sudo cp /etc/init.d/schooltool /etc/init.d/schooltool-another
 $ sudo vim /etc/init.d/schooltool-another
 ...
 SERVER_DESC="Another SchoolTool"
 SERVER=another
 INSTANCE=another
 ...
 LOGFILE=/var/log/schooltool/another-paste.log
 ...

Now you can start the new server::

 $ sudo /etc/init.d/schooltool-another start

Look if there are any startup errors::

 $ tail -f /var/log/schooltool/another-paste.log
 Reading configuration from /etc/schooltool/schooltool2/schooltool.conf
 INFO:zope.app.generations:main db: evolving in mode EVOLVEMINIMUM

There is no success message. But the server should have started. Go to
http://localhost:7082 to see it.

To make this server stop/start on reboot, you have to install the
init.d script to runlevels::

 $ sudo update-rc.d schooltool-another defaults
  Adding system startup for /etc/init.d/schooltool-another ...

Now you have two instances of SchoolTool.

If you are running something other than Natty, then file names are
different, but the steps are the same.

Can you help with this problem?

Provide an answer of your own, or ask Rizwan for more information if necessary.

To post a message you must log in.