• Running two separate copies of synchronet

    From Mojo@VERT/MOJO to All on Wednesday, March 26, 2025 15:39:05
    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
    Mojo

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net
  • From Digital Man@VERT to Mojo on Wednesday, March 26, 2025 14:14:02
    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.
    --
    digital man (rob)

    Sling Blade quote #6:
    Karl: he should've had a chance to grow up. He would had fun some time.
    Norco, CA WX: 58.8øF, 80.0% humidity, 3 mph SSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dreamer@VERT/DREAMERS to Digital Man on Wednesday, March 26, 2025 22:25:48
    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.

    This gives me some ideas for high availability. Has anyone ever tried implementing an HA design with Keepalived?


    --- MultiMail/Linux v0.49
    þ Synchronet þ Dreamer's Place
  • From Mojo@VERT/MOJO to Digital Man on Thursday, March 27, 2025 13:41:24
    Re: Running two separate copies of synchronet
    By: Digital Man to Mojo on Wed Mar 26 2025 02:14 pm




    q

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net
  • From Mojo@VERT/MOJO to Digital Man on Thursday, March 27, 2025 13:46:56
    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.


    Thanks
    Mojo

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net
  • From Mojo@VERT/MOJO to Digital Man on Thursday, March 27, 2025 14:20:45
    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.


    The BBS will be here
    d:\sbbs

    The game server will be here
    d:\sbbsgsv

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net
  • From Digital Man@VERT to Dreamer on Thursday, March 27, 2025 12:07:51
    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.
    --
    digital man (rob)

    Rush quote #87:
    Shifting shafts of shining weave the fabric of their dreams .. Jacob's Ladder Norco, CA WX: 63.2øF, 63.0% humidity, 1 mph S wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Mojo on Thursday, March 27, 2025 12:14:44
    Re: Running two separate copies of synchronet
    By: Mojo to Digital Man on Thu Mar 27 2025 01:46 pm

    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.

    What is "it" in this sentence?

    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.

    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.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #51:
    LF = Line Feed (ASCII 10, Ctrl-J)
    Norco, CA WX: 62.6øF, 63.0% humidity, 5 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mojo@VERT/MOJO to Digital Man on Friday, March 28, 2025 10:27:14
    Re: Running two separate copies of synchronet
    By: Digital Man to Mojo on Thu Mar 27 2025 12:14 pm

    What is "it" in this sentence?


    It is like if I turn off the web server, telent server or FTP server




    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?


    Mojo

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net
  • From Digital Man@VERT to Mojo on Friday, March 28, 2025 10:28:40
    Re: Running two separate copies of synchronet
    By: Mojo to Digital Man on Fri Mar 28 2025 10:27 am

    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?

    You can add command-line arguments to Windows shortcuts, so if you prefer to have desktop or start menu icons or Startup folder shortcuts, you would want 2 of them and pass the path to the ctrl dir in the configured command-line (of at least one of them).

    But for testing, it's convenient to just start from a command-line and see what happens when you use different command-line arguments.
    --
    digital man (rob)

    Steven Wright quote #35:
    If your car could travel at the speed of light, would your headlights work Norco, CA WX: 61.4øF, 65.0% humidity, 4 mph SW wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dreamer@VERT/DREAMERS to Digital Man on Friday, March 28, 2025 20:15:52
    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.

    Neato, sounds like I've got a project. Overkill is always fun!


    --- MultiMail/Linux v0.49
    þ Synchronet þ Dreamer's Place
  • From Mike Powell@VERT/CAPCITY2 to MOJO on Saturday, March 29, 2025 08:19:00
    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.


    * SLMR 2.1a * "It's so cold in the D - this is hard to dance to..."
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
  • From Mojo@VERT/MOJO to Mike Powell on Saturday, March 29, 2025 13:45:52
    Re: Running two separate copi
    By: Mike Powell to MOJO on Sat Mar 29 2025 08:19 am

    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.


    My issue right now with it is I can not control two different copies of it in completely separate directories when I change one it changes both of them and I do not want to happen like that. On one I want everything working and on the other I only want Rlogin to work and everything disabled and this one will be just a game server for two different BBS's I'm going to run. One bbs will be Synchronet and the other on will be T.A.G. if any of what I am saying makes any sense. But at this time it keeps changing everything in both copies when I make a change.

    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.


    Mojo

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net
  • From Digital Man@VERT to Mojo on Saturday, March 29, 2025 12:59:30
    Re: Running two separate copi
    By: Mojo to Mike Powell on Sat Mar 29 2025 01:45 pm

    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."

    I did commit a recent change to support either the path to the ctrl dir or the sbbs.ini file to both sbbs.exe and sbbsctrl.exe, but that's not how those programs have historically worked (e.g. through v3.20d), so since you're using sbbsctrl.exe, you need to remove "sbbs.ini" from those command-lines.
    --
    digital man (rob)

    Sling Blade quote #23:
    Karl: I reckon I'm gonna have to get used to looking at pretty people.
    Norco, CA WX: 62.3øF, 55.0% humidity, 2 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mojo@VERT/MOJO to Digital Man on Sunday, March 30, 2025 14:02:25
    Re: Running two separate copi
    By: Digital Man to Mojo on Sat Mar 29 2025 12:59 pm

    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."


    I apoligize I did read it wrong and I went back and read it again and now I see what you were saying to do. I have done this now froma command prompty and it works like you said it would. Thank you for your help with this. Now I can move forward with what I am trying to do.

    Thank you
    Mojo

    ---
    þ Synchronet þ Mojo's World BBS - mojo.synchro.net