I have a Raspberry Pi running DireWolf as a remote digipeater.? After a power failure, I would like DireWolf to automatically start.? I have put in the Automatic Startup commands from section 6.1 of the Raspberry-Pi-APRS.pdf document, and it will not automatically start.
This has been discussed multiple times on the list before..
What I found by looking at the Log file that is created is the script (from DireWolf) REQUIRES a display of some sort.? The log file has:
Wed Feb 22 11:53:41 PST 2017
DISPLAY=:0?? <-----------------------------------
The dw-start.sh script *requires* that the shell running the script has a Xwindows system running (be it on the Rasberry Pi's HDMI port, VNC, etc) first.? If you don't start one of those two options first, the script will fail 100% of the time.? If you want to start Direwolf in a headless fashion (no Xwindows, VNC, etc) yet have things restart when required, I'd recommend to review N7NIX's systemd "unit" files for Direwolf:
?? #The systemd unit for Direwolf ??
?? #See the bottom of this install script on how to install it ??
There are other ways to solve this though the Systemd way is the most "correct" way.? If you rather use the dw-start.sh script, I can provide you an edited one that is similar to my version that uses screen vs an Xterm window to show the ongoing logging of Direwolf.? You can see how I start Direwolf this way in the below script but this script does a lot more than just start Direwolf and thus much of it is probably a distraction: