2

I want to autostart the software motion with motion -s either at start up of my Ubuntu 12.04 and/or via ssh from a different PC. All this is no problem.

My question is, how do I correctly stop it locally or from remote when the terminal where motion has been started has already been closed? And how to correctly close this terminal once motion -s has been started?

3

You should start the command from an instance of byobu. With byobu, you can leave or join the session from the local or remote system to start or stop the process. Also, if you connect via SSH and use byobu to run the command, the command will not be terminated when you disconnect since the byobu session will remain active on the local system.

For more on how to use byobu, check out the community docs here:

https://help.ubuntu.com/community/Byobu

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.