- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- environnement during boot
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-25-2007 03:47 AM
07-25-2007 03:47 AM
environnement during boot
I got a some new servers running hpux11.23. Some third-party rc boot scripts use the current environnement for starting their products unlike HP's rc scripts which almost redefines the PATH variable which is fine.
root runs /sbin/sh ans in an interactive sessio theer is no PATh pbs with 3rd rc scripts, but as the machine boots i can see PATH pb in rc.log.
How can i find the "core" environnement when rc scripts begin ?
Thanks A lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 03:52 AM
07-25-2007 03:52 AM
Re: environnement during boot
The PATH under which the 'rc' scripts run is '/sbin'.
# cat /sbin/rc
Your customized 'rc' scripts should use absolute paths to execute your applications and/or set any environmental variables they need.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 06:19 AM
07-25-2007 06:19 AM
Re: environnement during boot
to customize your 3rd party scripts have a look at /sbin/init.d/template : PATH variable is redefined in a such a way that it satisfies most environements.
And in general, 3rd party scripts do not follow the rules defined for rc scripts : paramaters and returned values. So it is a good example for doing some re-design.
Hope this will help
Regards
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 06:35 AM
07-25-2007 06:35 AM
Re: environnement during boot
Sounds like the third party product is not in compliance with standards.
rc scripts are supposed to provide their own environment and not impact other script operations.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 12:41 PM
07-25-2007 12:41 PM
Re: environnement during boot
Fix the start/stopr script scripts. I have never seen an acceptable vendor application rc script -- they all need help. Everything from the environment, to not handling the 4 standard params, to not handling start when not needed and not stopping an app if the control variable=0. And the worst is the very unstable methods using ps and grep to find the application. Most vendors will tell you that they are trying to standardize but the results are just mediocre to poor in most aspects.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 08:57 PM
07-25-2007 08:57 PM
Re: environnement during boot
s2:2:wait:/sbin/rc2 ( no troll, please ;-)
Thanks again
Francis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2007 08:58 PM
07-25-2007 08:58 PM
Re: environnement during boot
Thanks a lot for yours answers, i looked at /etc/inittab but the line sqnc::wait:sbin/rc was not so explicit as in solaris where it looks like
2:2:wait:/sbin/rc2 ( no troll, please ;-)
I agree with the fact that scripts ( and especially boot scripts ) should set their own environnement as you can be sure of waht it does.
Thanks again
Francis