Code: Select all
rc.local Code: Select all
/home/pi/PythonProgramm.py Code: Select all
exit 0Code: Select all
rootCode: Select all
piAnyone has an idea? At the moment I can just see the running program on the pi HDMi Port which shows a video.
Code: Select all
rc.local Code: Select all
/home/pi/PythonProgramm.py Code: Select all
exit 0Code: Select all
rootCode: Select all
piCode: Select all
$ man kill
$ man 7 signal
$ kill -l
Code: Select all
kill -3 2645QUIT is rather more brutal.tl;dr: You can send a "keyboard interrupt" signal to the process using kill -INT <pid>
..well you never know if -INT is a command or tells you to add an Integer Number;-)That's what I said.
tl;dr: You can send a "keyboard interrupt" signal to the process using kill -INT <pid>
Code: Select all
try:
... (main programm loop)
except:
import traceback
print traceback.format_exc()
finally:
....(cleanup)Code: Select all
init=/bin/bashYes, I'd heard that - that this issue was "fixed" in systemd (Jessie). Still, OP did not specify which version of Raspbian he is running, and the problem description fits the "locking up in rc.local" problem case to a T. So, I'm assuming that he's still running the older version of Raspbian.DougieLawson wrote:That is NOT true with systemd systems, /etc/rc.local is not single threaded and given exclusive control. You can use the magic SysRq keys to interrupt a hanging task during boot and the system will usually recover to a login prompt (even if the network doesn't come up active).
Also true. But basically an implementation detail.Also editing the command line with Windows is NOT possible if the card has NOOBS. You have to use the NOOBS recovery system to edit it. Running a root shell from init=/bin/bash isn't "easiest".