I wanted a python scrip to run at startup so I edited '/etc/rc.local' to include the line:
python /home/pi/program.py &
It worked and the program was running, but when I entered 'ps -aef | grep python' in Terminal I saw that there were two instances of program.py running, one at the user level and one at root. I went back and edited '/etc/rc.local', removing the line I had added. Now the program starts every time my Pi boots, but only at the user level, but there's nothing in rc.local to tell it to start. Where is the command to run coming from?