I have two copies of Synchronet install on one machine in two separate directories. Is there a way to havwe them running spearatly so when changes is made in one it will not affect the other one such as turning off the mail, web and ftp servers on one but not the other.
Thanks in advanced for any help with this
Digital Man wrote to Mojo <=-
Re: Running two separate copies of synchronet
By: Mojo to All on Wed Mar 26 2025 03:39 pm
I have two copies of Synchronet install on one machine in two separate directories. Is there a way to havwe them running spearatly so when changes is made in one it will not affect the other one such as turning off the mail, web and ftp servers on one but not the other.
Thanks in advanced for any help with this
Yes. The "turning off" of servers is controlled via the ctrl/sbbs.ini
file and if you have two separate directories, then you have 2 separate copies of this file. You can run multiple instances of sbbs on the same system so long as you point them to their own separate "ctrl" directory (or ctrl/sbbs*.ini file, if you want the multiple instances to share
all the other data and config files). You'll just need to resolve interface/port conflicts (for binding/listening for incoming
connections) if you have any.
Yes. The "turning off" of servers is controlled via the ctrl/sbbs.ini file and if you have two separate directories, then you have 2 separate copies of this file. You can run multiple instances of sbbs on the same system so long as you point them to their own separate "ctrl" directory (or ctrl/sbbs*.ini file, if you want the multiple instances to share all the other data and config files). You'll just need to resolve interface/port conflicts (for binding/listening for incoming connections) if you have any.
Yes. The "turning off" of servers is controlled via the ctrl/sbbs.ini file and if you have two separate directories, then you have 2 separate copies of this file. You can run multiple instances of sbbs on the same system so long as you point them to their own separate "ctrl" directory (or ctrl/sbbs*.ini file, if you want the multiple instances to share all the other data and config files). You'll just need to resolve interface/port conflicts (for binding/listening for incoming connections) if you have any.
This gives me some ideas for high availability. Has anyone ever tried implementing an HA design with Keepalived?
Re: Running two separate copies of synchronet
By: Digital Man to Mojo on Wed Mar 26 2025 02:14 pm
Yes. The "turning off" of servers is controlled via the ctrl/sbbs.ini file and if you have two separate directories, then you have 2 separate copies of this file. You can run multiple instances of sbbs on the same system so long as you point them to their own separate "ctrl" directory (or ctrl/sbbs*.ini file, if you want the multiple instances to share all the other data and config files). You'll just need to resolve interface/port conflicts (for binding/listening for incoming connections) if you have any.
I have checked and it shows each one is pointed to it's own CTRL directory like you said.
But yet when I change one it changes both at the same time.
So I think I am missing something I should be doing. My current directories for them are as follows
d:\sbbs\ctrl
d:\sbbsgsv\ctrl
When I check the properties in each one it shows it's pointed to the correct directory.
What is "it" in this sentence?
To point a Synchronet instance to a particular ctrl directory (overriding the SBBSCTRL environment variable, if it's set, or the default path of /sbbs/ctrl), you must pass the path to the relavnt ctrl/sbbs.ini file on the command-line of sbbs (or sbbs.exe) or the path to the ctrl *directory* on the command-line of sbbsctrl.exe.
To point a Synchronet instance to a particular ctrl directory (overriding the SBBSCTRL environment variable, if it's set, or the default path of /sbbs/ctrl), you must pass the path to the relavnt ctrl/sbbs.ini file on the command-line of sbbs (or sbbs.exe) or the path to the ctrl *directory* on the command-line of sbbsctrl.exe.
So to make I understand this correctly I need to start each one from a command line and tell it on the command line the path to the contril directory?
Digital Man wrote to Dreamer <=-
Re: Re: Running two separate copies of synchronet
By: Dreamer to Digital Man on Wed Mar 26 2025 10:25 pm
This gives me some ideas for high availability. Has anyone ever tried implementing an HA design with Keepalived?
Not that I'm aware of.
To point a Synchronet instance to a particular ctrl directory (overriding
the SBBSCTRL environment variable, if it's set, or the default path of /sbbs/ctrl), you must pass the path to the relavnt ctrl/sbbs.ini file on the command-line of sbbs (or sbbs.exe) or the path to the ctrl *directory
on the command-line of sbbsctrl.exe.
So to make I understand this correctly I need to start each one from a command
line and tell it on the command line the path to the contril directory?
If it were me, and I was on an OS which allows it, I would use two different users, one for each instance, too. IIRC, that should keep your user environmnet variables from conflicting between instances.
I have also done like what Digital Man suggested load each one from a command line such as
d:sbbs\sbbsctrl.exe d:\sbbs\ctrl\sbbs.ini
d:\sbbsgsv\sbbsctrl.exe d:\sbbsgsv\ctrl\sbbs.ini
But still no luck getting them to work separatly like I was in hopes of having it do. So at this time I am not sure this is going to work like I wanted it to.
You need to read again what I wrote more carefully (emphasis added):
"To point a Synchronet instance to a particular ctrl directory (overriding the SBBSCTRL environment variable, if it's set, or the default path of /sbbs/ctrl), you must pass the path to the relavnt ctrl/sbbs.ini file on the command-line of sbbs (or sbbs.exe) or the *path to the ctrl directory* on the command-line of sbbsctrl.exe."
Sysop: | Luis Silva |
---|---|
Location: | Lisbon |
Users: | 763 |
Nodes: | 10 (0 / 10) |
Uptime: | 196:32:29 |
Calls: | 247 |
Files: | 46,971 |
Messages: | 12,329 |