Running a Cron Script only @ Startup Pls Help!!

Hi friends i have a script "backup.sh" which is stored in "/var/lib/pgsql" directory.

I want it to run as a cron so that it executes every time the system starts.

I tried the follwing method

I logged in as the root user and typed "crontab -e"

The file was completly blank so i put the following line @ the beggining of the file

"@reboot /var/lib/pgsql/backup.sh"

It said "crontab: installing new crontab"

But the cron did not run when i restarted the system(the script "backup.sh" mails after the task is comleted to an email address)

So i typed "vi crontab" which resides in the "etc"directory the file was something like this:

------------------------------------------------------------------------------------------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

------------------------------------------------------------------------------------------------------------

I added the follwing line @ the end of the file
"@reboot /var/lib/pgsql/backup.sh"

So it looked like this
------------------------------------------------------------------------------------------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
@reboot /var/lib/pgsql/backup.sh
------------------------------------------------------------------------------------------------------------

Even this method failed.

Do i have to change the it to "@reboot bash /var/lib/pgsql/backup.sh"
where u have to specify the command to enter "bash" in this case or enter "root" before the script path

Can anybody pls help me in achieving the follwing task I would be very greatful.

uname -a
server server 4.0 3.0 3516 Pentium IV(TM)-ISA/PCI

I am using NCR UNIX

Go to "/etc/rc2.d " direcotry and create a file as "S11file_name"

file name should be started with "S and two numbers"

rename your script as S11file_name

I'm using RedHat

I thought rc6.d was used for reboot what is rc2.d used for ?. Do i have 2 put it as "S11fle_name" does that mean that i since my filename is "backup.sh" right now it will become "S11backup.sh".If u dont mind can i ask u what "S11" stands for.

there is no meaning for S11 or S12 ...
this is for just file representation....