server startup script
I have newly installed Redhat v4 , it works fine , I want the server run some scripts after re-start , I tried to add the script to /etc/rc.local and also tried to add it to /etc/inittab , but it is not work , the script do not run after re-start the server , can advise what is wrong ? thx in advance.
|
Red Hat v4? Do you mean RHEL4? Scripts in rc.local should get executed at the boot? Have you looked into the logs for the errors? And what scripts are you trying to run? What are the scripts for?
|
Quote:
|
If you want to start the service, you can use chkconfig utility. It will start the services automatically at boot time.
And if you want to mount a shared folder you can edit fstab file. |
Quote:
|
The problem with using rc.local for that is those service eg DB will NOT get shutdown automatically. Try using chkconfig instead.
|
Changing rc.local permission to world writable is not sufficiently a good idea. I doubt you can prove your decision to change the permissions. Use chkconfig instead. It is designed for the very purpose you need.
|
All times are GMT -5. The time now is 10:42 PM. |