I have been getting problems when trying to create a startup script in Ubuntu 9.04. I followed this guide but it didn't work: http://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/
I followed the guide and created a script to see if it worked:
#This script is called test #!/bin/bash #Startup Firefox firefox&
I also attempted with #!/bin/sh, but it appeared to have the same problem.
After I created the file "test" in /etc/init.d, I typed this into the terminal:
ubuntuUser@ubuntu:~$ sudo update-rc.d test defaults
but I get this error:
ubuntuUser@ubuntu:~$ sudo update-rc.d test defaults update-rc.d: warning: /etc/init.d/test missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts> System startup links for /etc/init.d/test already exist.
I did not know what was LSB and ignored it and typed this line in:
ubuntuUser@ubuntu:~$ sudo chmod +x /etc/init.d/test
After that, I restarted my computer, but it did not work.
The problem is that I do not know if it's the "Missing LSB information" that is preventing my script to boot at startup, if it's the way I wrote my startup script, or if I'm doing this entirely wrong.
I guess the main questions are if I am using the wrong guide, and how do I make the startup script that?