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
How can I automatically start a daemon at boot time. iamjayanth Ubuntu 3 03-10-2009 01:10 PM
start time of a terminated process k_chaaya UNIX for Advanced & Expert Users 2 09-04-2006 12:57 AM
to get process start date and time naeem ahmad UNIX for Advanced & Expert Users 2 02-27-2006 05:09 AM
get process start time naeem ahmad High Level Programming 1 02-06-2006 08:40 PM
start a process at boot up time vtran4270 UNIX for Advanced & Expert Users 1 12-08-2002 07:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-25-2009
alert0919 alert0919 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 47
HP UX start process at boot time

When I get start program at boot
I read which run level
/sbin/rcx.d runlevel=0.....x

only read directory which directory name has UpperCase 'S'
is not enough
someone says that I need to reference another file
which file I need to reference

1)/etc/rc.config.d/all file which parameter set equals 1
2)/sbin/init.d
3)other files
can anyone tell me
which file that i need to reference

thanks
  #2 (permalink)  
Old 03-21-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
The question is not clear but if want to start something at boot time you write a script in /sbin/init.d (copy one of the other scripts as a template and then then install a symbolic link into the appropriate /sbin/rc?.d directory, e.g.:
New scripts is: /sbin/init.d/newscript.
# cd /sbin/rc3.d
# ln -s /sbin/init.d/newscript S99newscript


The S before the 99 means this is a start script (K would be a stop or kill script).
The number determines when the script is run in relation to the other scripts in /sbin/rc3.d.

If /sbin/init.d/newscript is using a variable to determine whether it runs,say NEWSCRIPT, e.g.:
Code:
# newscript startup
#
. /etc/rc/config

if [ $NEWSCRIPT = 1 ]
   then do_stuff
fi
Then that variable is set in a file in /etc/rc.config.d, e.g.
/etc/rc.config.d/newscript
Containing the line:
NEWSCRIPT=1


N.B. runlevel=0 is now eher one would normally start anything..

Last edited by TonyFullerMalv; 03-21-2009 at 05:54 PM..
  #3 (permalink)  
Old 03-23-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,163
The process is explained in:
man init
  #4 (permalink)  
Old 03-23-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
Quote:
Originally Posted by methyl View Post
The process is explained in:
man init
More accurately than I did I'm sure!
  #5 (permalink)  
Old 03-24-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,163
More confusingly more like!
After re-reading the original post, "man rc" would be more useful.
There is a whole manual tree under "man hpux" to read while you wait for one of these boxes to boot.
Sponsored Links
Closed Thread

Bookmarks

Tags
unresolved, unresolved for weeks

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 04:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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