I have a service that I install as so:
install -m 755 init_script /etc/init.d/spacenavd cd /etc/rc2.d ln -s ../init.d/spacenavd S99spacenavd
what the init_script does is start the script:
All of this works fine and allows the service to start automatically on startup. However I am having trouble running another script on startup that uses the spacenavd service. This script works normally when I run it manually after login in. However, running it on startup on as so doesn't work when I put it in rc.local.
I do the following in rc.local:
cd /home/filedirec sudo ./my_script &
This works sometimes and sometimes doesn't. I can't seem to determine what the cause is. Whats a good way to trouble shoot?