I am running 4 seafile server on 1 physical maschine (3 CE + 1 PRO)
every seafileserver has its own user and folder
/srv/seafile-1/ running with user seafile-1
/srv/seafile-2/ running with user seafile-2
/srv/seafile-3/ running with user seafile-3
/srv/seafile-4/ running with user seafile-4
Everything is running fine.
I would like to support seafile Ltd. by buying additional pro licenses.
the problem is, running more than one PRO causes an error:
./seafile-pro-server-5.1.10/seafile.sh start
[seafevents] is running, pid 8026. You can stop it by:
We’ve fixed that part of seafile.sh script, and it would be included in the next release. For a quick fix, you can use the latest version of it https://download.seafile.com/f/9839513ef9/
function validate_seahub_running () {
if pgrep -f "${manage_py}" 2>/dev/null 1>&2; then
echo "Seahub is already running."
exit 1;
elif pgrep -f "seahub.wsgi:application" 2>/dev/null 1>&2; then
echo "Seahub is already running."
exit 1;
fi
}
which will not start seahub as soon as a seahub process is already running.
I am reluctant to hack these scripts myself, plus these fixes would be gone with the next update anyway.
How did you achieve parallel instances starting up and running?
Which version do you use?
I am still using v5. x.
And each instance runs under its own user. The home directory of the user contains the installation of Seafile.
And you have to assign the database names manually.
And with the web server (e. g. Appache2) always use different ports for the reverse proxy.