Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Installing two copies of v4 as a service

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Dinant
Posts: 96
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Installing two copies of v4 as a service

Post 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.
User avatar
mcrossley
Posts: 12776
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Cumulus MX Version 4 Beta

Post by mcrossley »

You will have to do the second instance manually. The install option currently only copes with a single instance.
User avatar
martk1972
Posts: 8
Joined: Mon 10 Jun 2013 4:36 pm
Weather Station: Davis Vantage Pro 2 (Wireless)
Operating System: Debian 12.5 (bookworm)
Location: Sheffield, England
Contact:

Re: Installing two copies of v4 as a service

Post 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.
Image
User avatar
mcrossley
Posts: 12776
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Installing two copies of v4 as a service

Post 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
User avatar
mcrossley
Posts: 12776
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Installing two copies of v4 as a service

Post by mcrossley »

In the next v4 build I have added a new optional parameter to -install and -uninstall of -servicename, it defaults to "cumulusmx"
Dinant
Posts: 96
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Re: Installing two copies of v4 as a service

Post by Dinant »

That's good news. I'll test it with the following beta version.
water01
Posts: 3257
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Installing two copies of v4 as a service

Post 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.
David
Image
User avatar
mcrossley
Posts: 12776
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Installing two copies of v4 as a service

Post by mcrossley »

Ah. Ok, the thread is about Linux though. On a phone you don't see the profile info with OS type.
User avatar
martk1972
Posts: 8
Joined: Mon 10 Jun 2013 4:36 pm
Weather Station: Davis Vantage Pro 2 (Wireless)
Operating System: Debian 12.5 (bookworm)
Location: Sheffield, England
Contact:

Re: Installing two copies of v4 as a service

Post 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. :clap:
Image
water01
Posts: 3257
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Installing two copies of v4 as a service

Post 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. :clap:
Would you mind upgrading your profile to reflect that please, saves confusion.
David
Image
User avatar
martk1972
Posts: 8
Joined: Mon 10 Jun 2013 4:36 pm
Weather Station: Davis Vantage Pro 2 (Wireless)
Operating System: Debian 12.5 (bookworm)
Location: Sheffield, England
Contact:

Re: Installing two copies of v4 as a service

Post by martk1972 »

water01 wrote: Sat 23 Mar 2024 12:09 am Would you mind upgrading your profile to reflect that please, saves confusion.
Done :)
Image
water01
Posts: 3257
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Installing two copies of v4 as a service

Post by water01 »

Thank you.
David
Image
User avatar
philpugh
Posts: 388
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Installing two copies of v4 as a service

Post 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
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
http://goosegate.uk/
User avatar
mcrossley
Posts: 12776
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Installing two copies of v4 as a service

Post by mcrossley »

Thanks Phil, there were a couple of typos in there. I've fixed the original post now.
Dinant
Posts: 96
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Re: Installing two copies of v4 as a service

Post by Dinant »

I can confirm this new feature works in build 4018.
Post Reply