- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: startup script
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
Forums
Discussions
Discussions
Discussions
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
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
07-07-2008 08:28 AM
07-07-2008 08:28 AM
startup script
I have to setup a startup script for starting http. manually i start /opt/hpws/bin/httpd -k start. How can i set up this in startup script
thanks much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2008 08:33 AM
07-07-2008 08:33 AM
Re: startup script
Follow the guidlelines laid out in the 'rc(1M)' manpages or read this excellent (sill relevent) whitepaper:
http://docs.hp.com/en/934/startup.pdf
Be sure to follow (ideally begin with) the '/sbin/init.d/template' template for any startup/shutdown scripts you write!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2008 08:52 AM
07-07-2008 08:52 AM
Re: startup script
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2008 09:46 AM
07-07-2008 09:46 AM
Re: startup script
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2008 09:50 AM
07-07-2008 09:50 AM
Re: startup script
start
Start the Apache httpd daemon. Gives an error if it is already running. This is equivalent to apachectl -k start.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2008 11:21 PM
07-07-2008 11:21 PM
Re: startup script
This simply calls the SERVER_ROOT/bin/apachectl script, the startup script that the Apache project distributes along with the source tarball.
If you look at apachectl you will notice that it is a bit out of date and has some quirks that often require manual editing and adaptations to ones system (e.g. the status switch block requires an installed lynx but can easily be changed to work with wget, curl, Perl lwp-request or whatever is suitable to fetch the index (or any other more suitable) page of your website.
Also for it to work without any modifications to the apachectl you would configure your webserver to load mod_status and add (or uncomment) a context block for the server-status URL.
I think this switch should therefore better be renamed to "monitor)" because the usual "status)" should only display a line telling if the parent httpd process is running possibly along with its PID.
I think this would more conform with OCF standards.