Page 1 of 2
Installing two copies of v4 as a service
Posted: Sun 17 Mar 2024 3:00 pm
by Dinant
I want to install two versions of CumulusMX on one instance of Debian 12.5. Both as a service.
The installalation of both CumulusMX went fine. I installed the first in /opt/CumulusMX and the second in /opt/CumulusMX2.
Now I want to install both as a service.
The first seems to setup fine but for the second the cumulusmx.service file in /etc/systemd/system is overwritten by the second install as a service.
I am using the following command lines to setup as a service:
Code: Select all
cd /opt/CumulusMX
dotnet CumulusMX.dll -install -user admin -group admin -port 8998 -lang nl-NL
cd /opt/CumulusMX2
dotnet CumulusMX.dll -install -user admin -group admin -port 8999 -lang nl-NL
Do I have to edit the service files manually or am i missing something?
Maybe it is a good idea to name the file in /etc/systemd/system according to a command line option -service cumulusmx.service. Default value if the command line option is not present could be the same.
Re: Cumulus MX Version 4 Beta
Posted: Sun 17 Mar 2024 3:10 pm
by mcrossley
You will have to do the second instance manually. The install option currently only copes with a single instance.
Re: Installing two copies of v4 as a service
Posted: Thu 21 Mar 2024 6:05 pm
by martk1972
mcrossley wrote: ↑Sun 17 Mar 2024 3:10 pm
You will have to do the second instance manually. The install option currently only copes with a single instance.
I'm having the same problems, can you explain how to manually start a second instance of the cumulusmx service.
Thanks.
Re: Installing two copies of v4 as a service
Posted: Fri 22 Mar 2024 3:39 pm
by mcrossley
Copy the existing cumulusmx.service file in /etc/systemd/system/ to say cumulusmx2.service
Edit the cumulusmx2.service file
Change the WorkingDirectory= line to reflect the path to your second instance of MX,
Change the ExecStart= line and add the parameter "-port 8999"
Save the cumulusmx2.service file
Reload the configuration with the command > systemctl daemon-reload
You should now have two services you can control "cumulusmx" and "cumulusmx2"
You could also change the Description= line in the config file to something descriptive of your second istance
Re: Installing two copies of v4 as a service
Posted: Fri 22 Mar 2024 3:42 pm
by mcrossley
In the next v4 build I have added a new optional parameter to -install and -uninstall of -servicename, it defaults to "cumulusmx"
Re: Installing two copies of v4 as a service
Posted: Fri 22 Mar 2024 4:50 pm
by Dinant
That's good news. I'll test it with the following beta version.
Re: Installing two copies of v4 as a service
Posted: Fri 22 Mar 2024 5:13 pm
by water01
mcrossley wrote: ↑Fri 22 Mar 2024 3:39 pm
Copy the existing cumulusmx.service file in /etc/system/system/ to say cumulusmx2.service
Edit the cumulusmx2.service file
Change the WorkingDirectoty= line to reflect the path to your second instance of MX,
Change the ExecStart= line and add the parameter "-port 8999"
Save the cumulusmx2.service file
Reload the configuration with the command > systemctl daemon-reload
You should now have two services you can control "cumulusmx" and "cumulusmx2"
You could also change the Description= line in the config file to something descriptive of your second istance
Mark , I believe that the user that asked for these instructions is a Windows 11 user, whereas these instructions are for a Linux install.
Re: Installing two copies of v4 as a service
Posted: Fri 22 Mar 2024 5:44 pm
by mcrossley
Ah. Ok, the thread is about Linux though. On a phone you don't see the profile info with OS type.
Re: Installing two copies of v4 as a service
Posted: Fri 22 Mar 2024 8:29 pm
by martk1972
water01 wrote: ↑Fri 22 Mar 2024 5:13 pm
Mark , I believe that the user that asked for these instructions is a Windows 11 user, whereas these instructions are for a Linux install.
I'm running two instances of CumulusMX V4 simultaneously on Debian 12, sorry I didn't make this clear.
mcrossley wrote: ↑Fri 22 Mar 2024 3:39 pm
Copy the existing cumulusmx.service file in /etc/system/system/ to say cumulusmx2.service
Edit the cumulusmx2.service file
Change the WorkingDirectoty= line to reflect the path to your second instance of MX,
Change the ExecStart= line and add the parameter "-port 8999"
Save the cumulusmx2.service file
Reload the configuration with the command > systemctl daemon-reload
You should now have two services you can control "cumulusmx" and "cumulusmx2"
You could also change the Description= line in the config file to something descriptive of your second istance
Thank you Mark for the quick reply, your instructions worked perfectly.
Re: Installing two copies of v4 as a service
Posted: Sat 23 Mar 2024 12:09 am
by water01
martk1972 wrote: ↑Fri 22 Mar 2024 8:29 pm
water01 wrote: ↑Fri 22 Mar 2024 5:13 pm
Mark , I believe that the user that asked for these instructions is a Windows 11 user, whereas these instructions are for a Linux install.
I'm running two instances of CumulusMX V4 simultaneously on Debian 12, sorry I didn't make this clear.
mcrossley wrote: ↑Fri 22 Mar 2024 3:39 pm
Copy the existing cumulusmx.service file in /etc/system/system/ to say cumulusmx2.service
Edit the cumulusmx2.service file
Change the WorkingDirectoty= line to reflect the path to your second instance of MX,
Change the ExecStart= line and add the parameter "-port 8999"
Save the cumulusmx2.service file
Reload the configuration with the command > systemctl daemon-reload
You should now have two services you can control "cumulusmx" and "cumulusmx2"
You could also change the Description= line in the config file to something descriptive of your second istance
Thank you Mark for the quick reply, your instructions worked perfectly.
Would you mind upgrading your profile to reflect that please, saves confusion.
Re: Installing two copies of v4 as a service
Posted: Sat 23 Mar 2024 12:55 pm
by martk1972
water01 wrote: ↑Sat 23 Mar 2024 12:09 am
Would you mind upgrading your profile to reflect that please, saves confusion.
Done
Re: Installing two copies of v4 as a service
Posted: Sat 23 Mar 2024 2:06 pm
by water01
Thank you.
Re: Installing two copies of v4 as a service
Posted: Sat 23 Mar 2024 3:40 pm
by philpugh
Copy the existing cumulusmx.service file in /etc/system/system/ to say cumulusmx2.service
Edit the cumulusmx2.service file
Change the WorkingDirectoty= line to reflect the path to your second instance of MX,
Change the ExecStart= line and add the parameter "-port 8999"
Save the cumulusmx2.service file
Reload the configuration with the command > systemctl daemon-reload
You should now have two services you can control "cumulusmx" and "cumulusmx2"
Mark: the directory in the first line should be
/etc/systemd/system/.
But it works other than that - I now have two systems running 4 b4017 without any issues I can see yet.
Phil
Re: Installing two copies of v4 as a service
Posted: Sat 23 Mar 2024 6:00 pm
by mcrossley
Thanks Phil, there were a couple of typos in there. I've fixed the original post now.
Re: Installing two copies of v4 as a service
Posted: Thu 28 Mar 2024 4:04 pm
by Dinant
I can confirm this new feature works in build 4018.