Re: mmdvm_bridge won’t start on boot after update #mmdvm_bridge


Steve N4IRS
 

Chris,
It sounds like netcheck does not think your internet connection is coming up fast enough.
Make a backup of mmdvm_bridge.system and edit the file:
 
[Unit]

Description=MMDVM_Bridge Service
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 04/20/2018

# The device name should point to the
# port the mmdvm is plugged into.
# For USB ports (Arduino Due)
# BindTo=dev-ttyACM0.device
#
# To make the network-online.target available
# systemctl enable systemd-networkd-wait-online.service

After=network-online.target syslog.target # netcheck.service
# Requires=netcheck.service
Wants=network-online.target

[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge: [`date +%%T.%%3N`]" >> $
ExecStart=/opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process

[Install]
WantedBy=multi-user.target

I bolded the 2 places to comment out netcheck.
reboot and verify mmdvm_bridge is starting.

Steve N4IRS


On 8/1/20 10:53 PM, Chris Whitam wrote:
On Sat, Aug 1, 2020 at 10:11 PM, Steve N4IRS wrote:
mmdvm_bridge.system
Here is what it looks like

[Unit]

Description=MMDVM_Bridge Service

# Description=Place this file in /lib/systemd/system

# Description=N4IRS 04/20/2018

 

# The device name should point to the

# port the mmdvm is plugged into.

# For USB ports (Arduino Due)

# BindTo=dev-ttyACM0.device

#

# To make the network-online.target available

# systemctl enable systemd-networkd-wait-online.service

 

After=network-online.target syslog.target netcheck.service

Requires=netcheck.service

Wants=network-online.target

 

[Service]

Type=simple

Restart=always

RestartSec=3

Restart=on-abort

StandardOutput=null

WorkingDirectory=/opt/MMDVM_Bridge

ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge: [`date +%%T.%%3N`]" >> $

ExecStart=/opt/MMDVM_Bridge/MMDVM_Bridge /opt/MMDVM_Bridge/MMDVM_Bridge.ini

ExecReload=/bin/kill -HUP $MAINPID

 

KillMode=process

[Install]

WantedBy=multi-user.target

 

 

 

 


Join main@DVSwitch.groups.io to automatically receive all group messages.