Re: Autostart Xastir on boot


Ray Wells
 

xastir won't start if ~/.xastir/xastir.pid exists.

If xastir is not shut down correctly xastir.pid is not deleted hence, xastir won't restart.
Modify the script to delete xastir.pid


On 26/04/14 01:52, pmooney22@... wrote:
 
Try using a script:

sudo nano autostart.run

##!/bin/bash
## script to autostart xastir
#echo "starting Xastir"
#sudo /path/to/Xastir &

Script modified to kill xastir.pid

#!/bin/bash
#kill xastir.pid
cd ~/.xastir
[[ -f "xastir.pid" ]] && rm "xastir.pid"
# script to autostart xastir
echo "starting Xastir"
sudo /path/to/Xastir &

Ray vk2tv


save , then make executable 

sudo chmod +x autostart.run

To test type: ./autostart.run

Then: sudo nano /etc/rc.local

add:  /path/to/autostart.run 

Then reboot.

Or if using Arch Linux:

sudo systemctl enable xastir.service


HTH

Paul, 5B8BA

Join RaspberryPi-4-HamRadio@groups.io to automatically receive all group messages.