by permitivity » Mon Sep 02, 2013 9:15 pm
Hello,
The normal way to get "motion" to start at boot is to just use
$this->bbcode_second_pass_quote('', 's')ystemctl enable motion
This works for me like it's suppose to.
There's a known issue with "motion" on some USB webcams. It seems you have to run "fswebcam" before you run "motion" for a couple models of usb webcams. Qui's tutorial has a trick where you put the fswebcam command in a .service file, and run it before you run "motion" - all done during startup. So it looks like this:
nano /etc/systemd/system/motion.service
$this->bbcode_second_pass_code('', '
[Unit]
Description=motion camera
[Service]
ExecStartPre=/usr/bin/fswebcam -r 320x240 -d /dev/video0 -v /dev/null
ExecStart=/usr/bin/motion
[Install]
WantedBy=multi-user.target
')
Then you enable it at startup, using the service file instead of the motion process command:
$this->bbcode_second_pass_quote('', 's')ystemctl enable
motion.service I've used this on my old pogoplug install from a few weeks ago. Now it doesn't seem to work. I can issue