cancel
Showing results for 
Search instead for 
Did you mean: 

help regarding script installation in linux

Former Member
0 Kudos

Hello friends,

A little help is required. I would like to place a procedure/script to start/stop SAP sync with server startup/shutdown for planned or unplanned outage, so that SAP will shut down and startup cleanly with the script guidance.

I have distributed environment, CI and db on seperate server, based on RHEL6.3

Infact i have created script in ms word for both the servers, but don't know how to install it in linux at run level 3. Any one of you please help me or guide me to install it perfectly so that when next bootup, my system i mean SAP system come up gently.

Looking your response quite urgently.

Thanks - vicks

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188883
Active Contributor
0 Kudos

Hi Vikas,

In your case, write your script, store it in /etc/init.d/, then create a symlink in each of /etc/rc0.d and /etc/rc6.d (if you want both) pointing to your script.

Typically the script itself is stored in /etc/init.d, and then symlinks are placed in the directories corresponding to the runlevels you require.

Additionally refer this linkhttp://www.softpanorama.org/Commercial_linuxes/Startup_and_shutdown/creating_your_own_init_scripts.s...

Hope this helps.

Regards,

Deepak Kori