How do I make a program run when the Pi boots? I've tried before but not managed it properly so I'm going to attempt it again.
I just read a guide which says to edit rc.local and add a line in there with & to make it run in a separate process. No luck. Nothing happens (or seems to). If I run rc.local when I've logged in it works but my program starts spewing it's output all over the console. Not so good.
Currently what I do is login to the Pi, run screen, run my program, detach the screen and let it do whatever it wants hidden away. Is there some way I can do something similariaraly automagicamatically?
It's been a pain every time we've had a powercut so this will make it so much easier. First attempt last year stopped the Pi rebooting properly for some reason.