>>>I need to start a PostgreSQL database server at Linux bootup, so I need
>>>to add a line to the file '/etc/rc.d/rc.local'.
>>I would make a script that accept start/stop, then I would call the
>>script with the correct parameter from rc.local or from one of the
>>many script that are run during system startup/shutdown.
>>If your distribution uses the SysV style, you should have many
>>directory in /etc/rc.d, one for every 'initlevel' of the system.
>>level 0 is shutdown and level 6 is reboot. Just link your script
>>in there and it will be called during reboot/shutdown. The same
>>happen for level 3.
>>>How do I adapt this line for inclusion into the /etc/rc.d/rc.local file?
>>Leave it like it is, but be sure to specify the complete path of
> Thanks Davide.
> I'm using, Linux version: RedHat 7.2, Kernel 2.4.7-10.
> I do have the multiple levels of /etc/rc.d/rc0.d to rc6.d. In every one
> of those directories there is a file called 'K15postgresql' that is a
> symbolic link to the script '/etc/rc.d/init.d/postgresql'. This file
> seems to be some kind of comphrehensive postgresql script --but I am not
> very familiar with the scripting language.
> Why is this script linked from ALL the rc0.d ... rc6.d directories?
> Despite the existence of the script the postgresql server does not start
> on bootup even though the directories and paths, etc, in the script all
> look correct. Why might this be?
> Any help anyone can give me would be appreciated.
> Thank's and regards,
Now that one I can answer. The sym links that start with K are used to Kill the
application when entering that run level. If you want the application started
when you enter a run level you need to put a sym link in exactly like the one
that starts with the K but replace the K with an S and replace the numerical
part with a number that would make sense in the context of all the other
symlinks. When the machine enters a run state it first processes all the K sym
links in order of their numerical part starting from 0 and going up. When it
runs out of K's it starts with the S's in asending numerical order. If the
application you want to start depends on other functions being up and running
you need to give it a higher number than the processes that must start before it