- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: startup services
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2011 10:53 PM
тАО05-11-2011 10:53 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2011 11:21 PM
тАО05-11-2011 11:21 PM
Solutionaccording to which default runlevel you have in /etc/inittab, the startup-scripts are executed in /sbin/rcX.d/ . Actually they are just symbolic links to scripts in /sbin/init.d/ .
You can try to make your own script, look at the /sbin/init.d/template file and modify it according to your needs. Then just rename it (S for startup script, K for killing/stopping script + the sequence execution number) and copy it to /sbin/init.d/ and make a symbolic link in /sbin/rcX.d/ , depending in which run-level you want to run the script.
But I think that apache should have it's own startup/shutdown script in /sbin/init.d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2011 11:34 PM - last edited on тАО07-07-2011 01:27 PM by Kevin_Paul
тАО05-11-2011 11:34 PM - last edited on тАО07-07-2011 01:27 PM by Kevin_Paul
Re: startup services
You may read this thread for more details.
http://h30499.www3.hp.com/t5/System-Administration/to-auto-start-apache-web-server-hpws-apacheconf/m-p/4532464#M368385
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2011 11:34 PM
тАО05-11-2011 11:34 PM
Re: startup services
The script you are looking for is /sbin/init.d/hpws_apache .
So the command is /sbin/init.d/hpws_apache start would start the Apache service . The corresponding configuration the script will look at is called as /etc/rc.config.d/hpws_apacheconf where you have a variable called as HPWS_APACHE_START which should be put as 1 in case you want the apache service to start at boot time. Don't forget to assign points
Regards!
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2011 03:24 AM
тАО05-12-2011 03:24 AM
Re: startup services
If you question is more general and is how to write shutdown and startup scripts, read the 'rc(1M)' manpages.
Regards!
...JRF...