Created
October 26, 2018 11:21
-
-
Save satishgunjal/aef396051fe3b60551da17534b4edc5c to your computer and use it in GitHub Desktop.
How to modify a python script started from from rc.local (Raspberry Pi)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To modify a python script started from from rc.local follow below steps. | |
1. Login using putty | |
2. ps aux | grep 'the-name-of-your-progam' (The number in the second column is the pid. Use that pid to send the process a termination signal) | |
3. kill -TERM [put-your-pid-here] | |
4. Now check again >> ps aux | grep 'the-name-of-your-progam' | |
5. If program is stopped now modify the program and test it before adding to rc.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment