-
Find the motion process:
Execute the following command to find the motion process.
ps aux | grep motion | grep -v grep
Note the process ID (PID) of the motion service.
-
Kill the motion process:
Use the
killcommand withsudoto stop the process. Replace<PID>with the process ID you found.sudo kill <PID>
If a stronger force is necessary:
sudo kill -9 <PID>
-
Verify that the motion process has stopped:
Run the command again to check if the motion service is still active.
ps aux | grep motion | grep -v grep
If there is no output, the motion service has stopped successfully.
- Make sure you have the necessary permissions to run these commands.
- Replace
<PID>with the actual PID of the motion process.