You're making an assumption in that because the address and port cannot be bound your script is already running. It might not be. It's possible for a program to crash and not have the port released.
or will list the processes running for you user.
I do very little with lxterminal and autostart so am not the best person to help debug this.
I suggest a methodical, step by step approach:
TL;DR: with knowing the cause or error message I can't suggets a fix.
Code:
ps -a
Code:
ps -fu pi
I do very little with lxterminal and autostart so am not the best person to help debug this.
I suggest a methodical, step by step approach:
- Change your autostart entry toreboot and see if you get a terminal opened on your desktop.
Code:
lxterminal
- Change your autostart entry toreboot and see if you get a terminal opened on your desktop.
Code:
lxterminal --geometry=120x40
- Change your autostart entry toreboot and see if you get a terminal opened on your desktop.
Code:
lxterminal --geometry=120x40 --title=Updating
- Change your autostart entry toreboot and see if you get a terminal opened on your desktop with your script running. I'm guessing you won't.
Code:
lxterminal --geometry=120x40 --title=Updating -e bash -c '/home/pi/grott/autostartgrott.sh'
- Change your autostart entry toreboot and see if you get a terminal opened on your desktop with your script running. Check /home/pi/grott.log for any error messages.
Code:
lxterminal --geometry=120x40 --title=Updating -e bash -c '/home/pi/grott/autostartgrott.sh 2>/home/pi/grott.log'
- Remove your autostart entry.
- Reboot
- Open a terminal and run
Code:
lxterminal --geometry=120x40 --title=Updating -e bash -c '/home/pi/grott/autostartgrott.sh'
TL;DR: with knowing the cause or error message I can't suggets a fix.
Statistics: Posted by thagrol — Tue Mar 19, 2024 9:55 pm