The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Startup scripts not anymore run at boot after a Moode update
#1
Hi guys
Last week I updated the system to Moode 6.7, and it seems to work fine. Two days ago, after a power outage, I'm not anymore able to run a couple of scripts at RPi startup. I'll try to explain better:

Until two days ago, in the rc.local file, I added the two following lines:

Code:
(sleep 5; sudo python /usr/local/bin/RaspDacDisplayAL.py) &
/etc/mauseswitch.sh &
exit 0


The python script is dedicated to manage the OLED display I have in my system, while the mauseswitch.sh is dedicated to controlled shutdown (managed by a MauseBerry micro-board and a momentary Led button). 
The system goes up, but the two scripts for an unknown (to me) reason are not anymore automatically started. Obviously if I open the console and type "sudo python RaspDacDisplayAL.py" it starts correctly and the OLED display is populated with current playing info (title, artist, duration lenght, kbs, audio type, etc.).

Being the "rc.local method" not anymore working, I red that there are alternative and more modern ways to do it, but not being a Linux expert is not too easy to understand which'd be the best possible option.

Two additional notes:
1) I already apply the sudo chmod 77 to the mauseswitch.sh to make it executable.
2) The RaspDacDisplayAL.py "calls" others two python scripts : Winstar_GraphicOLED.py (that's basically the driver for the display) and pages.py (a configuration file used to select which info shall be shown on the display)

Any suggestion how to proceed ? 

thanks in advance
Andrea

P.S. apologize for the bad english, hope the request was clear....
Reply


Messages In This Thread
Startup scripts not anymore run at boot after a Moode update - by mancio61 - 07-24-2020, 07:11 AM

Forum Jump: