Re: Analog_Bridge#.log instance 2 and 3 was not auto-rotate


Steve N4IRS
 

You will have to copy/modify /etc/logrotate/Analog_Bridge

On 5/22/21 10:05 AM, Komkit Listisard via groups.io wrote:
Currently I have 3 running Analog_Bridge instance.

Only 1 Analog_Bridge.log (1st instance) were auto-rated.   Analog_Bridge2 and Analog_Bridge3 log files were not, there in one Analog_Bridge#.log.

My analog_bridge3.service,  all 3 service files are the same - well except the instance numbers. The log generate correctly for instance 2 and 3 but they never rotated.

[Unit]
Description=Analog_Bridge Service3
# Description=Place this file in /lib/systemd/system
# Description=N4IRS 03/25/2021
 
After=netcheck.service
Requires=netcheck.service
 
[Service]
Type=simple
Restart=on-failure
RestartSec=3
RestartPreventExitStatus=252 253 254
StandardOutput=null
WorkingDirectory=/opt/Analog_Bridge3
Environment=AnalogBridgeLogDir=/var/log/dvswitch3
ExecStartPre = /bin/sh -c 'echo "Starting Analog_Bridge: [`date +%%T.%%3N`]" >> /var/log/netcheck'
ExecStart=/opt/Analog_Bridge3/Analog_Bridge3 /opt/Analog_Bridge3/Analog_Bridge3.ini
ExecStartPost= -/usr/local/sbin/update-config.sh
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
 
[Install]
WantedBy=multi-user.target
 
# 254 matching IDs
# 253 ini parse errors
# 252 dv3000 not found, fallback not enabled
 
73, kit


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