09-30-2021, 08:45 AM
(09-30-2021, 08:00 AM)Cardone Wrote:(09-29-2021, 06:20 PM)officialsm Wrote: Hi,
i'm using a power management board with a button to power on/off (from Audiophonics: https://www.audiophonics.fr/en/raspberry...10912.html).
It works until 7.3 version, with 7.4 work to power-on but not to power-off.
To work i use a custom script (as described here: https://github.com/audiophonics/Raspberr...management).
The poweroff script is called from /var/local/www/commandw/restart.sh and from /etc/rc.local
With 7.4 versione seems restart.sh or rc.local are not in use. If if try from command sheel the shutdown script it works fine.
Could you help me to understandt if something changed form 7.3 about shutdown and where i can put custom script?
At the moment if i press the button it not works,no shutdown.
Thank you
Hello,
did you check the entry in /etc/rc.local?
Code:sudo nano /etc/rc.local
Add before exit :
python /home/pi/spc_moode.py &
Yes, done:
pi@moode:~ $ tail -6 /etc/rc.local
# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1
python /home/pi/spc_moode.py &
exit 0