Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save satishgunjal/aef396051fe3b60551da17534b4edc5c to your computer and use it in GitHub Desktop.
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)
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