1
I installed motion
in Fedora 17, and I want it to start when I lock the screen with control + alt + l
, and stop when I unlock it.
I found this to run/stop a script on screen lock: https://unix.stackexchange.com/questions/28181/run-script-on-screen-lock-unlock/28183#28183
The problem is that motion requires that I use sudo
, eg: $ sudo service motion start
How can I get around this?