Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4921

Beginners • Re: Please help .. Headless program startup issue (service) still cannot find what causes auto start up to fail

$
0
0
thank you @thagrol.

i have made the suggested changes only did not understand one part:
In /home/display/startupDisplay.sh replace ~ with /home/display
In /home/display/startupDisplay.sh change
Code: Select all

source ~/Bus-Departure-Board/bin/activate
inside the startupDisplay i made the suggested change but i dont get the first suggested change here
/home/display/startupDisplay.sh replace ~ with /home/display

You have a copule of lines in that file that use the ~ character as part of the path to a file. ~ should be expanded to the real path to the user's home directory. The suggestion was to rule out that being a problem by removing that expansion and replacing it with the actual path.

So source ~/Bus-Departure-Board/bin/activate becomes source /homer/display/Bus-Departure-Board/bin/activate

[qoute]
did the rest but now it won't even manually startup with

Code:

sudo systemctl enable startupDisplay.servicesudo systemctl start startupDisplay.service

Code:

sudo systemctl status startupDisplay.service
Now greets me with: Screenshot 2024-07-04 164309.jpg

the result from

Code:

sudo journalctl -u startupDisplay
is:
Screenshot 2024-07-04 170534.jpg
[/quote]


So what's in /home/display/startupDisplay.log?

Does sudo journalctl -u startupDisplay shed any more light on things?

BTW, you do not need to enable the service every time. You do that once and it sticks unless you disable it.

Statistics: Posted by thagrol — Thu Jul 04, 2024 3:14 pm



Viewing all articles
Browse latest Browse all 4921

Trending Articles