- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I run programs at boot time?
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
04-08-2005 02:56 AM
04-08-2005 02:56 AM
How do I run programs at boot time?
i'm new to HP-UX11i, and i need to run some programs automaticaly at boottime,
what should i do ? where to do it ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 03:04 AM
04-08-2005 03:04 AM
Re: How do I run programs at boot time?
Let's suppose that your script is called 'doit' and that it need to start in run level 3 and stop in run level 2.
You would create the symbolic links
ln -s /sbin/init.d/doit /sbin/rc3.d/S900doit
ln -s /sbin/init.d/doit /sbin/rc2.d/K100doit
By convent the Sxxx and Kyyy values should sum to 1000 because that tends to correctly order the startup and stop routines.
Man rc for details.
- Tags:
- rc(1M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 03:04 AM
04-08-2005 03:04 AM
Re: How do I run programs at boot time?
You determine the runlevel at which the process should run. If that doesn't matter, use /etc/rc.local and add this line to /etc/inittab:
lcl:3456:once:/etc/rc.local
/etc/rc.locat will than be executed only once when init level 3, 4, 5, or 6 is entered. Just include the levels there you need.
If the sequence is important (depends on what parts of the boot process is done, and which part not (yet), you have to go dig in /sbin/init.d and /sbin/rc#.d (where # is the runlevel you want to influence
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 03:04 AM
04-08-2005 03:04 AM
Re: How do I run programs at boot time?
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x9a701012aa92d5118ff10090279cd0f9%2C00.html&admit=716493758+1112972606739+28353475
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 03:05 AM
04-08-2005 03:05 AM
Re: How do I run programs at boot time?
Refer /sbin/init.d/template file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 03:05 AM
04-08-2005 03:05 AM
Re: How do I run programs at boot time?
- Tags:
- inittab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 03:10 AM
04-08-2005 03:10 AM
Re: How do I run programs at boot time?
Simple, effective, and efficient
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 05:47 AM
04-08-2005 05:47 AM
Re: How do I run programs at boot time?
All input so far should get you the desired results.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2005 03:00 AM
04-11-2005 03:00 AM