The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Understanding System Vish startup scripts darkmatter14B UNIX for Dummies Questions & Answers 0 02-28-2008 05:36 PM
How to solve screwing startup scripts akzin UNIX for Advanced & Expert Users 12 07-11-2007 05:50 AM
Adding PATH variable in the startup scripts rajanishshetty UNIX for Dummies Questions & Answers 5 03-02-2007 12:51 PM
startup scripts, how do they work in UNIX? BG_JrAdmin Shell Programming and Scripting 1 07-11-2006 04:43 PM
Startup/Shutdown scripts vincente AIX 1 05-23-2006 01:30 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-27-2006
kafaween kafaween is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 4
Startup scripts

Hi all

We have HP UX 11.23 installed on 4 RISC servers (2 oracle databases, 2 Oracle App Servers) , we are in a construction period , so the power failure may happen more than once a day.
I need to learn how to create an automatic startup services as in Windows, if we know that the services (command lines) owned by two users.

Best Regards

Email removed

Last edited by vino; 12-27-2006 at 05:34 AM..
  #2 (permalink)  
Old 12-27-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
All service startups in unix are handled by /sbin/rc? scripts. Just replace the ? by the runlevel. In this case, since it will be applications and databases that will be starting up, the startup script is /sbin/rc3. The /sbin/rc3 script in turn calls different scripts in the /sbin/rc3.d directory. You can write the startup scripts for the dbase/app and put it in the /sbin/rc3.d directory.

If you are new to the unix world, you might want to read up on how the HP-UX system boots.
  #3 (permalink)  
Old 01-24-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
Quote:
Originally Posted by blowtorch
All service startups in unix are handled by /sbin/rc? scripts. Just replace the ? by the runlevel. In this case, since it will be applications and databases that will be starting up, the startup script is /sbin/rc3. The /sbin/rc3 script in turn calls different scripts in the /sbin/rc3.d directory. You can write the startup scripts for the dbase/app and put it in the /sbin/rc3.d directory.

If you are new to the unix world, you might want to read up on how the HP-UX system boots.

Startup scripts do not belong in the rc<number>.d directories but in the init.d directory.

In the rc<number>.d directories you create links to a script in the init.d directory.

The format of these links is [S|K]NNN<scriptname


In your /sbin/rc3.d directory could have something like:
lrwxr-xr-x 1 root ... S430nfs.client -> /sbin/init.d/nfs.client

S means it will start an application/service
K means it will kill an application/service

NNN decide the order in which applications/services are started/stopped

The /sbin/rc script will start/stop all applications/services mentioned in your rc<number>.d directories. The run level will decide which which directories are covered.

Looking at the S430nfs.client link, the /sbin/rc script will make sure the script /sbin/init.d/nfs.client is executed with as argument "start".

if a link starts with K the corresponding script in /sbin/init.d is executed with argument "stop" .

So, the scripts in /sbin/init.d should have a "start" and "stop" section. Which section will be executing depends on the argument "start" or "stop".

Besides creating the "start links" it is most importing to create the "kill links" as well.

Whenever you shutdown you want your applications/services to be closed in a proper way and not in the rough way cause the system in the end starts to kill all applications/services like that. A "kill -9" on your Oracle processes could cause damage to your database.

For detailed information check the HP-UX documentation
  #4 (permalink)  
Old 02-08-2007
mr_manny mr_manny is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 144
whenever making changes or creating new services, you have the potential to impact the boot-up process negatively.

Do the research and do it right the 1st time, otherwise you will be booting into single-user to correct...
  #5 (permalink)  
Old 06-07-2009
m.sobhy m.sobhy is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
starting ingers DB at unix startup

hiii
how can i run or start ingres Database at hp unix 11i startup
note:
only user called ingres have permission to start Database, can't even run if we use root
Regards,,,
Mohamed Sobhy
  #6 (permalink)  
Old 06-08-2009
amitranjansahu's Avatar
amitranjansahu amitranjansahu is offline
Registered User
  
 

Join Date: Jan 2009
Location: Gurgaon,INDIA
Posts: 239
So you can add a script in startup and switch to the user to startup ingres DB

like

su - ingres -c PATH/bin/$STARTSCRIPT
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0