The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-08-2008
andryk's Avatar
andryk andryk is offline
Registered User
 

Join Date: Sep 2003
Posts: 448
Hi,
Its easy, find out what runlevel you're on then add a script (copy & modify an existing one Snnnscriptname) on the specified directory
Code:
who -r # check the runlevel, script is to be placed on /sbin/rc3.d (if runlevel 3) or /sbin/rc2.d if runlevel 2 ...
Commands are put in start) section whereas Informative messages are put in start_msg) if my memory is not failing ...
Reply With Quote