Portable Webcam Network cron @reboot
Okay. Last time we messed around with webcam, we messed around with motion daemon as a service. Well, I found out an easier way to do it. So, the first thing we want to do is to disable the motion service. This, of course, after spending a whole day setting it up. Siiiiiiiiigh.
- Go to /etc/default
- Open up motion file
- change the line start_motion_daemon=yes to start_motion_daemon=no
- Go to /etc/motion
- set motion not to run as daemon in motion.conf (daemon off)
- set process_id_file as undefined
- Goto to home directory
- run crontab -e
- Add the line @reboot motion &
And that's it. Just one little @reboot word in the right place. It runs the program at boot (and reboot) time. That's all there is to it. For bonus, it runs as the proper user, so file permission isn't a problem. Make sure that it runs in the background (enable daemon) on motion.conf. Tada!!! Done! 10 minutes!