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?