¿ªÔÆÌåÓý

Re: use cron and dw-start.sh to autostart two instances of Direwolf?


 

Start a terminal in your script with direwolf and its arguments as an argument to the terminal? (Can't test at the moment, but look at?)

On Fri, Nov 12, 2021 at 8:05 AM KP3FT via <kp3ft=[email protected]> wrote:
Thanks guys,

Switched to the systemd method and it works fine.? Autostarts on boot, and restarts either instance when killing one.? Is there a method to keep the Direwolf terminal windows open on the desktop automatically, without needing to run a "screen" command?? Manually running the scripts keeps the terminals open on the desktop, but systemd runs them in the background.? I'm using VNC and like to see audio levels, etc. on decoded stations.? I've tried a few things in both the start-script and systemd files, but still runs in the background.

My "direwolf-VHF-start.sh" start-script:

#!/usr/bin/env bash
direwolf -c direwolf.conf -qd -T %H:%M:%S:


and systemd "dwVHF.service" file:

[Unit]
Description=Direwolf VHF
After=multi-user.target
[Service]
Type=idle
User=pi
ExecStart=/home/pi/direwolf-VHF-start.sh
Restart=always
[Install]
WantedBy=multi-user.target



--
John D. Hays
Kingston, WA
K7VE / WRJT-215

?

Join [email protected] to automatically receive all group messages.