Since /etc/rc.local is executed at the end of each multiuser runlevel, it's not the correct place to add start scripts. I recommend to not use /etc/rc.local in any way. It's a reclit for early *nix times. Instead of that, create a startup script in /etc/init.d/name which accepts start and stop arguments to start or stop the deamon, process or the job:
#! /bin/sh
# /etc/init.d/name
#
case "$1" in
start)
echo "Starting name"
your_service --with --parameters
;;
stop)
echo "Stopping name"
kill your_service
;;
*)
echo "Usage: /etc/init.d/name {start|stop}"
exit 1
;;
esac
exit 0
Also there is a skeleton script in /etc/init.d/skeleton for this.
After you created that scripts, set the permissons:
chmod 755 /etc/init.d/name
Now, add them to the boot seqence:
update-rc.d name defaults
This will create the necessary links in the /etc/rc*.d/ directories.