Stop Python Program After Autostarted in rc.local with all i - Raspberry Pi Forums


i have python program wich nicely autostarts after power on. therefore put in

code: select all

rc.local 
line:

code: select all

/home/pi/pythonprogramm.py 
before

code: select all

exit 0
said, works perfectly, how can stop program? keyboard on usb-port not reacting on smthg, , via ssh can login

code: select all

root
or

code: select all

pi
, nothing happen. wouldn't "kill" process because there several subprocesses running, i'd end when program stops. far understand "kill" doesnt end subprocesses right?

has idea? @ moment can see running program on pi hdmi port shows video.

some bedtime reading you:

code: select all

$ man kill $ man 7 signal $ kill -l 
tl;dr: can send "keyboard interrupt" signal process using kill -int <pid>


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code