This is where I noted some things when I working with Operating Systems, Virtualization, Containers, Databases, Programming Languages, Frameworks, and Development Tools to reuse and for time-saving later.
Pages
▼
Thursday, April 21, 2011
How to enable a script auto startup with system on ubuntu server ?
Create a script in the /etc/init.d/ directory
Make the script executable
$ sudo chmod +x /etc/init.d/myscript.sh
Make the script start at bootup
$ sudo update-rc.d myscript.sh defaults
Note: the option “defaults” puts a link to start your script in runlevels 2, 3, 4 and 5, and puts a link to stop in runlevels 0, 1 and 6.
No comments:
Post a Comment