Operating System - HP-UX
1826344 Members
4135 Online
109692 Solutions
New Discussion

Re: Startup Sevice during boot

 
Robson Menezes
Occasional Contributor

Startup Sevice during boot

I don´t have experience with HP-UX...so I need help about startup service during the boot.
My problem:

We have a HP-UX Server running Sybase (Datebase) and it service needs to be UP every time that the HP-UX start (or restart).
I need to do a script to automatic this service during the boot.
Where Can I put this script to run the Sybase automatic? /etc/rc ??
And a script manual?
We don´t have a rc.local file in HP-UX. Isn´t right?

Thanks!
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: Startup Sevice during boot

Have a look at this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=959103

Regards
Torsten

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: Startup Sevice during boot

To start at run level 3 on the way up
To stop at run level 2 on the way down

cd /sbin/rc3.d

ln -s /sbin/init.d/sybasestart S800startsybase

cd /sbin/rc2.d

ln -s /sbin/init.d/sybasestart K200stopsybase

/sbin/init.d

There is a script called template there.

Copy that to sybasestart

Modify it so it switches to the sybase user id(the id that owns the binaries) and starts the database.

I am assuming sybase provided scripts to start the database.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Raj D.
Honored Contributor

Re: Startup Sevice during boot

Hi Robson ,

Here is a good doc , that explains the RC startup process at boot time, and hopefully u can put the sybase script .

1. /etc/rc.config.d/your_file [Configuration file ]

2. /sbin/init.d/your_file [ Execution file ]

3. /sbin/rc#.d/SXXX [ Execution script Link]

4. /sbin/rc(#-1).d/K(1000-XXX).. [ Stop script]


Hope this will help ..

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Startup Sevice during boot

Hi Robson ,

Here is a good doc , that explains the RC startup process at boot time, and hopefully u can put the sybase script .

1. /etc/rc.config.d/your_file [Configuration file ]

2. /sbin/init.d/your_file [ Execution file ]

3. /sbin/rc#.d/SXXX [ Execution script Link]

4. /sbin/rc(#-1).d/K(1000-XXX).. [ Stop script]



Hope this will help ..

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "