Re: DVSwitch.ini was not found #mmdvm_bridge


Steve N4IRS
 

I don't see anything wrong with your service..
That being said, since you set the workingdirectory and the execstart, why rename MMDVM_Bridge, MMDVM_Bridge.ini and DVSwitch.ini ?

Steve N4IRS

On 9/15/2021 8:36 AM, Komkit Listisard via groups.io wrote:
Here is the mmdvm_bridge4.service



[Unit]
Description=MMDVM_Bridge Service4
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 09/10/2020
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=always
RestartSec=3
Restart=on-abort
StandardOutput=null
WorkingDirectory=/opt/MMDVM_Bridge4
Environment=DVSwitch=/opt/MMDVM_Bridge4/DVSwitch4.ini
ExecStartPre = /bin/sh -c 'echo "Starting MMDVM_Bridge: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/MMDVM_Bridge4/MMDVM_Bridge4 /opt/MMDVM_Bridge4/MMDVM_Bridge4.ini
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target


73, Kit
 

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