I am new on LInux
I want to make some startup script on my ubuntu machine. the startup script would start my ftp, http server automatically.
How can i do it in proper way?
Most servers, if installed with synaptic/apt-get in Ubuntu, and I guess there is an equivalent in Fedora (rpm?), will install startup scripts automatically.
They often end in a directory
There is the concept of
The numbering is important, since many services depend on other services. The file system has to be mounted in an early stage, many programs need the network being up and running, a logging daemon being started and so on.
You see, it is a little complicated, and nothing you like to do by hand - except for studying purpose.
So use the canonical installation sequence of your distribution, and study the /etc-Scripts to find out how it works.
You may normally start or stop a service and do other things in /etc/init.d with one of these commands:
but this in only by convention - some services might not use all of these options, some use more or less.
In Ubuntu, the situation has changed recently. There is now the upstart daemon, which expects you to use
to reach the same result, but today I only get a warning, if I use the old and more common style. I don't now whether other Linux-flavors and Unix systems are switching to upstart too.