Add second instance off MMDVM_Bridge


KC5MOL Javier
 

How can i add a second instance of MMDVM Bridge?  


 

Add it to a new folder. Then use different ports.


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of KC5MOL Javier <KC5MOL@...>
Sent: Saturday, April 23, 2022 1:19:06 AM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: [DVSwitch] Add second instance off MMDVM_Bridge
 
How can i add a second instance of MMDVM Bridge?  


Patrick Perdue
 

I just recently did that to run a static Allstar bridge on a Pi that is also being used as a normal DVSwitch Server. I also created a second service unit and changed it's command line appropriately, along with another dedicated Analog_Bridge for the static bridge. I only needed one instance of MD380emu though, since the DVSwitch Mobile client was using an ambe dongle, and the Allstar/DMR bridge didn't require it.


On 4/23/2022 2:55 AM, Ernie Gm7kbk wrote:
Add it to a new folder. Then use different ports.


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of KC5MOL Javier <KC5MOL@...>
Sent: Saturday, April 23, 2022 1:19:06 AM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: [DVSwitch] Add second instance off MMDVM_Bridge
 
How can i add a second instance of MMDVM Bridge?  


 

I only install MMDVM_Bridge. Usually linking from Dmr to Ysf. Doing a full Dvswitch server install just causes problems. I only do a full install to bring in ASL.




From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of Patrick Perdue <borrisinabox@...>
Sent: Saturday, April 23, 2022 1:30:27 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Add second instance off MMDVM_Bridge
 

I just recently did that to run a static Allstar bridge on a Pi that is also being used as a normal DVSwitch Server. I also created a second service unit and changed it's command line appropriately, along with another dedicated Analog_Bridge for the static bridge. I only needed one instance of MD380emu though, since the DVSwitch Mobile client was using an ambe dongle, and the Allstar/DMR bridge didn't require it.


On 4/23/2022 2:55 AM, Ernie Gm7kbk wrote:
Add it to a new folder. Then use different ports.


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of KC5MOL Javier <KC5MOL@...>
Sent: Saturday, April 23, 2022 1:19:06 AM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: [DVSwitch] Add second instance off MMDVM_Bridge
 
How can i add a second instance of MMDVM Bridge?  


Steve N4IRS
 

Doing a full Dvswitch server install just causes problems.  ???

On 4/23/22 09:22, Ernie Gm7kbk wrote:
I only install MMDVM_Bridge. Usually linking from Dmr to Ysf. Doing a full Dvswitch server install just causes problems. I only do a full install to bring in ASL.




From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of Patrick Perdue <borrisinabox@...>
Sent: Saturday, April 23, 2022 1:30:27 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Add second instance off MMDVM_Bridge
 

I just recently did that to run a static Allstar bridge on a Pi that is also being used as a normal DVSwitch Server. I also created a second service unit and changed it's command line appropriately, along with another dedicated Analog_Bridge for the static bridge. I only needed one instance of MD380emu though, since the DVSwitch Mobile client was using an ambe dongle, and the Allstar/DMR bridge didn't require it.


On 4/23/2022 2:55 AM, Ernie Gm7kbk wrote:
Add it to a new folder. Then use different ports.


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of KC5MOL Javier <KC5MOL@...>
Sent: Saturday, April 23, 2022 1:19:06 AM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: [DVSwitch] Add second instance off MMDVM_Bridge
 
How can i add a second instance of MMDVM Bridge?  


KC5MOL Javier
 

I have copied the MMDVM_Bridge directory to MMDVM_Bridge2 and i have also renamed MMDVM_Bridge to MMDVM_Bridge2.  When i try to run the second instance 

sudo systemctl enable MMDVM_Bridge2
Failed to enable unit: Unit file MMDVM_Bridge.service does not exist.

How do i create a second mmdvm_bridge service?  


Skyler Fennell
 

Go to /etc/ststemd/system and add your file, mmdvm_bridge2.service. 

You can copy this from mmdvm_bridge.service if you do

cd / 
find . -iname mmdvm_bridge.service
Then note the path then
cp /path/to/service /etc/systemd/system/mmdvm_bridge_2.service 

Then modify the service file for the new path to mmdvm bridge and new  ini file 

The systemctl enable mmdvm_bridge_2.service 

On Sat, Apr 23, 2022 at 10:04 AM KC5MOL Javier <KC5MOL@...> wrote:
I have copied the MMDVM_Bridge directory to MMDVM_Bridge2 and i have also renamed MMDVM_Bridge to MMDVM_Bridge2.  When i try to run the second instance 

sudo systemctl enable MMDVM_Bridge2
Failed to enable unit: Unit file MMDVM_Bridge.service does not exist.

How do i create a second mmdvm_bridge service?  


KC5MOL Javier
 

Thanks that worked.  I will continue with my journey


KC5MOL Javier
 

i though it was working but I get these Failures.  I have attached my mmdvm_service2.service file.  

dvswitch@dvswitch-server:~ $ sudo systemctl status mmdvm_bridge2
● mmdvm_bridge2.service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge2.service; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2022-04-24 18:08:55 CDT; 30s ago
  Process: 14785 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge2: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCC
  Process: 14787 ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini (code=exited, status=1/FAILURE)
 Main PID: 14787 (code=exited, status=1/FAILURE)
 
Apr 24 18:08:55 dvswitch-server systemd[1]: Starting mmdvm_bridge2.service...
Apr 24 18:08:55 dvswitch-server systemd[1]: Started mmdvm_bridge2.service.
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Failed with result 'exit-code'.
------------------------------------------------------------------------------------------------------
mmdvm_bridge2.service
 
 J3#J3[Unit]
Description=MMDVM_Bridge Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 10/16/2020
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge2
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge2: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target
 


 

What does your MMDVM_Bridge log for instance 2 say?

On 25/4/22 9:25 am, KC5MOL Javier wrote:
i though it was working but I get these Failures.  I have attached my mmdvm_service2.service file.  

dvswitch@dvswitch-server:~ $ sudo systemctl status mmdvm_bridge2
● mmdvm_bridge2.service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge2.service; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2022-04-24 18:08:55 CDT; 30s ago
  Process: 14785 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge2: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCC
  Process: 14787 ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini (code=exited, status=1/FAILURE)
 Main PID: 14787 (code=exited, status=1/FAILURE)
 
Apr 24 18:08:55 dvswitch-server systemd[1]: Starting mmdvm_bridge2.service...
Apr 24 18:08:55 dvswitch-server systemd[1]: Started mmdvm_bridge2.service.
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Failed with result 'exit-code'.
------------------------------------------------------------------------------------------------------
mmdvm_bridge2.service
 
 J3#J3[Unit]
Description=MMDVM_Bridge Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 10/16/2020
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge2
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge2: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target
 


-- 
73 de Tony VK3JED/VK3IRL
http://vkradio.com


Mike KB8JNM
 

Could it be that the ports of the fist instance are in conflict with the ports of the second instance ?


On 4/24/2022 7:25 PM, KC5MOL Javier wrote:
i though it was working but I get these Failures.  I have attached my mmdvm_service2.service file.  

dvswitch@dvswitch-server:~ $ sudo systemctl status mmdvm_bridge2
● mmdvm_bridge2.service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge2.service; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2022-04-24 18:08:55 CDT; 30s ago
  Process: 14785 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge2: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCC
  Process: 14787 ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini (code=exited, status=1/FAILURE)
 Main PID: 14787 (code=exited, status=1/FAILURE)
 
Apr 24 18:08:55 dvswitch-server systemd[1]: Starting mmdvm_bridge2.service...
Apr 24 18:08:55 dvswitch-server systemd[1]: Started mmdvm_bridge2.service.
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Failed with result 'exit-code'.
------------------------------------------------------------------------------------------------------
mmdvm_bridge2.service
 
 J3#J3[Unit]
Description=MMDVM_Bridge Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 10/16/2020
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge2
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge2: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target
 


KC5MOL Javier
 

I have stopped the first instance and I still get the error


KC5MOL Javier
 

I deleted the second instance and recopied it. Looks like that part is working now. 


KC5MOL Javier
 

I deleted the second instance of mmdvm and copied the directory MMDVM_Bridge to MMDVM_Bridge2. It all loaded good. 


thank you


KC5MOL Javier
 

On Sun, Apr 24, 2022 at 06:40 PM, Tony Langdon wrote:
What does your MMDVM_Bridge log for instance 2 say?
 
On 25/4/22 9:25 am, KC5MOL Javier wrote:
i though it was working but I get these Failures.  I have attached my mmdvm_service2.service file.  

dvswitch@dvswitch-server:~ $ sudo systemctl status mmdvm_bridge2
● mmdvm_bridge2.service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge2.service; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2022-04-24 18:08:55 CDT; 30s ago
  Process: 14785 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge2: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCC
  Process: 14787 ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini (code=exited, status=1/FAILURE)
 Main PID: 14787 (code=exited, status=1/FAILURE)
 
Apr 24 18:08:55 dvswitch-server systemd[1]: Starting mmdvm_bridge2.service...
Apr 24 18:08:55 dvswitch-server systemd[1]: Started mmdvm_bridge2.service.
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Failed with result 'exit-code'.
------------------------------------------------------------------------------------------------------
mmdvm_bridge2.service
 
 J3#J3[Unit]
Description=MMDVM_Bridge Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 10/16/2020
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge2
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge2: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target
 

 

-- 
73 de Tony VK3JED/VK3IRL
http://vkradio.com

 What is the location of the of the MMDVM_Bridge log, for my notes?

I deleted the second instance of mmdvm and copied the directory MMDVM_Bridge to MMDVM_Bridge2. It all loaded good. 


Mike KB8JNM
 

Something about

/opt/MMDVM_Bridge2/MMDVM_Bridge.ini

does it exist ?

check ownership/permissions

check file for type error


On 4/25/2022 2:41 AM, KC5MOL Javier wrote:
On Sun, Apr 24, 2022 at 06:40 PM, Tony Langdon wrote:
What does your MMDVM_Bridge log for instance 2 say?
 
On 25/4/22 9:25 am, KC5MOL Javier wrote:
i though it was working but I get these Failures.  I have attached my mmdvm_service2.service file.  

dvswitch@dvswitch-server:~ $ sudo systemctl status mmdvm_bridge2
● mmdvm_bridge2.service
   Loaded: loaded (/lib/systemd/system/mmdvm_bridge2.service; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2022-04-24 18:08:55 CDT; 30s ago
  Process: 14785 ExecStartPre=/bin/sh -c echo "Starting MMDVM_Bridge2: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCC
  Process: 14787 ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini (code=exited, status=1/FAILURE)
 Main PID: 14787 (code=exited, status=1/FAILURE)
 
Apr 24 18:08:55 dvswitch-server systemd[1]: Starting mmdvm_bridge2.service...
Apr 24 18:08:55 dvswitch-server systemd[1]: Started mmdvm_bridge2.service.
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Main process exited, code=exited, status=1/FAILURE
Apr 24 18:08:55 dvswitch-server systemd[1]: mmdvm_bridge2.service: Failed with result 'exit-code'.
------------------------------------------------------------------------------------------------------
mmdvm_bridge2.service
 
 J3#J3[Unit]
Description=MMDVM_Bridge Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 10/16/2020
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge2
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge2: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/MMDVM_Bridge2/MMDVM_Bridge2 /opt/MMDVM_Bridge2/MMDVM_Bridge.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target
 

 

-- 
73 de Tony VK3JED/VK3IRL
http://vkradio.com

 What is the location of the of the MMDVM_Bridge log, for my notes?

I deleted the second instance of mmdvm and copied the directory MMDVM_Bridge to MMDVM_Bridge2. It all loaded good.