- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Startup script issue
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-24-2009 06:55 PM
тАО05-24-2009 06:55 PM
Startup script issue
I have an application startup script which does not start properly when the server comes up.But it starts fine if we run it manually.
Upon checking the error logs, we found errors with variables.
Would it be fine to source the varibales to this script.? If this is a source issue, how does it work once the server is fully up and running the script manually.?
Regards
SEN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 07:01 PM
тАО05-24-2009 07:01 PM
Re: Startup script issue
what is script which you need to start with server starup?
you need to check /sbin/init.d
when hpux system startup /etc/inittab calls /sbin/rc, which in turn calls execution scripts to start subsystems.There are four components to this method of startup and shutdown: /sbin/rc, execution scripts, configuration variable scripts, and link files.
/sbin/rc
This script invokes execution scripts based on run levels. It is also known as the startup and shutdown sequencer script.
Execution scripts
These scripts start up and shut down various subsystems and are found in the /sbin/init.d directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 07:27 PM
тАО05-24-2009 07:27 PM
Re: Startup script issue
Why not.
>If this is a source issue, how does it work once the server is fully up and running the script manually?
Are you expected to define these variables in /etc/profile or ~/.profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 08:36 PM
тАО05-24-2009 08:36 PM
Re: Startup script issue
>>I have an application startup script
Where you have put yout startup script ?
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 10:07 PM
тАО05-24-2009 10:07 PM
Re: Startup script issue
1.Application is jBoss.
2.The script refers variables from configuration files placed in application directory.If I source these configuration files, would it work.?
3.startup script is in /sbin/init.d
link is palced in /sbin/rc3.d
config file in /etc/rc.config.d
Thanks
SEN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2009 10:25 PM
тАО05-24-2009 10:25 PM
Re: Startup script issue
rc scripts should only use variables defined in /etc/rc.config.d/. If you need variables from your application directory, you should source them from your file in /etc/rc.config.d.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 12:10 AM
тАО05-25-2009 12:10 AM
Re: Startup script issue
Can I source it from the existing configuration file or I have to copy the application configuration files to /etc/rc.config.d .?
Thanks
SEN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 12:22 AM
тАО05-25-2009 12:22 AM
Re: Startup script issue
you can copy from any existing script, but you need to modify it accordingly.
here is example of script.
http://support.bb4.com/archive/200101/msg00183.html
more information for this here.
http://www.unixhub.com/docs/hpux/hpux_boot.html
hope this will help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2009 04:14 AM
тАО05-25-2009 04:14 AM
Re: Startup script issue
Either one, I would do the former, so you don't have two copies to maintain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2009 08:41 AM
тАО05-26-2009 08:41 AM