Difference between revisions of "Stopping"

From Box Of Stops Online Help
Jump to: navigation, search
(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...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
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.
 
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:
+
If you do need to deliberately stop Box Of Stops, the following command will do the job in one step:
 
  sudo pkill -ef boxofstops
 
  sudo pkill -ef boxofstops
  
[[File:Pkill.png|border]]
+
[[File:Pkill.png]]
 +
 
 +
This will leave Box Of Stops stopped until you either [[Starting|restart it manually]], or you restart the Raspberry Pi.  By default Box Of Stops will automatically start again when you boot up the Pi, though this can be [[Auto start|disabled]].
 +
 
 +
Note, there are [[Windows#Stopping|separate instructions]] if you're running under Windows.
  
 
== Which processes to stop ==
 
== Which processes to stop ==
Line 18: Line 22:
 
  sudo kill <pid>
 
  sudo kill <pid>
  
This will automatically also request the child '''python''' process to stop cleanly.
+
This will also cause the child '''python''' process to stop cleanly.
 +
 
 +
[[File:Matching-processes.png]]
  
[[File:Matching-processes.png|border]]
+
[[Sudo|Why sudo?]]

Latest revision as of 17:35, 3 June 2017

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 step:

sudo pkill -ef boxofstops

Pkill.png

This will leave Box Of Stops stopped until you either restart it manually, or you restart the Raspberry Pi. By default Box Of Stops will automatically start again when you boot up the Pi, though this can be disabled.

Note, there are separate instructions if you're running under Windows.

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.

Matching-processes.png

Why sudo?