1819870 Members
2390 Online
109607 Solutions
New Discussion юеВ

System startup script

 
Febuary
Occasional Contributor

System startup script

Hi,

Need help on the following
1. Where are startup scripts kept in HP-UX 11
2. How do I code the shell scripts to start programs. In Linux, there is the /etc/rc/init.d/rc2.d .. rc3.d etc. What is the HP-UX equivalent?
5 REPLIES 5
linuxfan
Honored Contributor

Re: System startup script

Hi Masood,

The configuration files for the startup scripts are in /etc/rc.config.d and the scripts themselves are in /sbin/init.d directory.
These scripts are linked from /sbin/rc?.d, where ? is the run-level.

Unfortunately in HP-UX (AFAIK) there is no command to enable/disable startup scripts like in Linux where we can use something like chkconfig.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Jim Turner
HPE Pro

Re: System startup script

Hi Masood,

You'll find HP-UX 11.00 to be similar to what you know with Linux.

Startup scripts are stored in /sbin/init.d

Start/Stop links are stored in /sbin/rc*.d
where * is the numeric run level

Configuration files are stored in /etc/rc.config.d

The document /usr/share/doc/start_up.txt is probably your best starting point.

All the best,
Jim

linuxfan
Honored Contributor

Re: System startup script

Hi Masood,

I don't exactly remember but there was a document in /usr/share/doc directory called startup.txt
That should give you more information about how the startup/shutdown scripts work in HP (both 10.x and 11.x)

-Ramesh
They think they know but don't. At least I know I don't know - Socrates
Praveen Bezawada
Respected Contributor

Re: System startup script

Hi

The attached pdf should be helpful for you in writing startup scripts.

...BPK...
Febuary
Occasional Contributor

Re: System startup script

Hi all,

Thanks for the tip.
Rgds