railrun
Posts: 2
Joined: Tue Sep 25, 2012 8:49 pm

Start Motion while booting

Wed Sep 26, 2012 6:20 pm

Hi folks,

I would like to start motion while booting. I have a Eyetoy-Webcam from a PS3.
Normaly I start it via SSH with

Code: Select all

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so motion
So this works pretty good, but now I would like to have it run when I start my R-Pi. As far as I understand I have to advance /etc/init.d but with which lines?!
Thanks for any hints&help.
Cheers
Martin

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Start Motion while booting

Thu Sep 27, 2012 6:06 pm

Quick & dirty method is just to put it in /etc/rc.local before the 'exit 0' at the end.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

railrun
Posts: 2
Joined: Tue Sep 25, 2012 8:49 pm

Re: Start Motion while booting

Thu Sep 27, 2012 6:33 pm

pluggy, thank you!
It works. But is there also a "not-dirty-method" ;)

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Start Motion while booting

Thu Sep 27, 2012 7:17 pm

Theres probably a dozen ways of doing it, its not that dirty (sort of official in some circles) but its a lot simpler than going down the full system V init.d route. I use it all the time.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

Return to “Beginners”