Monday, June 1, 2009

startup script in ubuntu

Creat
Write a script in a text editor. put it in the /etc/init.d/ directory.

Lets say you called it FOO. You then run

sudo update-rc.d FOO defaults

You also have to make the file you created, FOO, executable:

sudo chmod +x /etc/init.d/FOO

thx 2 http://strabes.wordpress.com/2006/10/16/how-to-create-a-startup-script-in-ubuntu-dapper/

No comments: