Difference between revisions of "Stopping"
From Box Of Stops Online Help
Boxofstops (Talk | contribs) (Created page with "Typically this is not something you'll need to do. Box Of Stops is fine with you just unplugging the Raspberry Pi when you're not using it. If you do need to deliberately st...") |
Boxofstops (Talk | contribs) |
||
Line 4: | Line 4: | ||
sudo pkill -ef boxofstops | sudo pkill -ef boxofstops | ||
− | [[File:Pkill.png | + | [[File:Pkill.png]] |
== Which processes to stop == | == Which processes to stop == | ||
Line 18: | Line 18: | ||
sudo kill <pid> | sudo kill <pid> | ||
− | This will | + | This will also cause the child '''python''' process to stop cleanly. |
− | [[File:Matching-processes.png | + | [[File:Matching-processes.png]] |
Revision as of 07:41, 1 October 2016
Typically this is not something you'll need to do. Box Of Stops is fine with you just unplugging the Raspberry Pi when you're not using it.
If you do need to deliberately stop Box Of Stops, the following command will do the job in one stop:
sudo pkill -ef boxofstops
Which processes to stop
The pkill command above will simply stop any running processes that contain "boxofstops" in the command line.
If you have other commands running in that directory, you may want to be more selective.
To list the matching running processes:
ps -ef | grep boxofstops
Then look for the process id for the java process in the list and stop this:
sudo kill <pid>
This will also cause the child python process to stop cleanly.