On Thu, Nov 11, 2021, 08:45 John D Hays - K7VE via <john=[email protected]> wrote:
Why are you running two instances? Direwolf can handle more than on ADEVICE at a time.?
Second, systems would be better than cron for managing startup and restarts.?
On Thu, Nov 11, 2021, 08:41 KP3FT via <kp3ft=[email protected]> wrote:
I'm having a heck of a time getting this to work.? On bootup, I'd like cron to autostart two instances of Direwolf, one for VHF on one sound card, the other for HF on a second sound card, and restart either one if one of them crashes.? Cron starts both Direwolf instances on bootup and they work fine, apparently because there's no pause between starting the two.? But the problem is that if I close one of the instances, cron doesn't restart that instance after one minute.
To get cron to start two instances, I made two bash-scripts, one for VHF (direwolf-VHF-start.sh) and one for HF (direwolf-HF-start.sh).? The VHF script uses the default "direwolf.conf" file; the HF script uses "hf.conf", configured for 300-baud.? I editing the default dw-start.sh script and changed DIREWOLF="direwolf" to DIREWOLF="/home/pi/direwolf-VHF-start.sh".? I also have an edited copy of the default "dw-start.sh" which I renamed to "dwHF-start.sh" and which has DIREWOLF="/home/pi/direwolf-HF-start.sh".? I also changed that script to log to /var/tmp/dwHF-start.log. I set cron to run both dw-start.sh and dwHF-start.sh.? All scripts are executable.
Testing cron to run only the VHF start-script or the HF start-script works... it restarts Direwolf after one minute if I close Direwolf.