- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Where to place customized scripts in HP-UX
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
06-27-2007 05:31 PM
06-27-2007 05:31 PM
Where to place customized scripts in HP-UX
Please let me know where to place Customized scripts so that they can be executed at the time of boot in HP-UX. As in Redhat we can place those scripts in rc.local file and those scripts get executed while boot process. So please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2007 05:43 PM
06-27-2007 05:43 PM
Re: Where to place customized scripts in HP-UX
place is:
1) /sbin/init.d where there is a template to create a custom start/stop script at boot
2) link files in /sbin/rc*.d control the sequencing order of the execution scripts,
3) use the configuration variables in /etc/rc.config.d to change the behavior of scripts in /sbin/init.d.
see this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1140119
Regards,
Fat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2007 06:38 PM
06-27-2007 06:38 PM
Re: Where to place customized scripts in HP-UX
rather seems like a reverence to ole BSD style startup of services.
I think the distro packagers have taken up this from Slackware which avoids the somewhat convoluted SysV boot up and rather sticks to BSD style to make it "easier" for users to bring up their services without having to write and link a full fledged SysV init script.
But since HP-UX has a strong SysV bias, especially as the runlevel concept is concerned, you really should take a copy of the template file from /sbin/init.d and edit it to your needs, just as "Fat" recommended.
Be careful with the exit codes of your init script, for too liberal a scheme could result in an inadvertent infinite reboot loop of your machine (I think it was exit 3).
But the comments in template should mention these specifics.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2007 07:07 PM
06-27-2007 07:07 PM
Re: Where to place customized scripts in HP-UX
if you asign your script name is "marketing",do like this...
1.Put this script in /sbin/init.d.
2.Then edit /etc/rc.config.d, make a enry like this, # vi /etc/r.config.g
marketing=1
3. Now, you should creae 2 links for start nd stop the services in /sbin/rcX.d,here X is run level.
if you want to run in run level 3,make a link in /sbin/rc3.d/s730 marketing.
If you want to stop the script in level 2,make a link in /sbin/rc2.d/k720 marketing.
by KK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2007 07:10 PM
06-27-2007 07:10 PM
Re: Where to place customized scripts in HP-UX
Mark Syder (like the drink but spelt different)