![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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.. |
|
||||
|
Quote:
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 |