- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to start a program as a daemon on 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
10-21-2002 07:30 AM
10-21-2002 07:30 AM
how to start a program as a daemon on HP UX
Anybody can explain me how to start a process at startup?
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 07:33 AM
10-21-2002 07:33 AM
Re: how to start a program as a daemon on HP UX
If you mean machine startup, then you could use template defined in /sbin/init.d/template. Then you have to use eventually variables from /etc/rc.config.d depending on what you wrote and links to /sbin/rcX.d. If your program is not a daemon, then use nohup. See man rc and man rc.config.
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 07:37 AM
10-21-2002 07:37 AM
Re: how to start a program as a daemon on HP UX
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
It a nutshell, there are 3 things you got to do.
1) Creating the startup script and place it in /sbin/init.d. It's best to use the existing file called "template" in /sbin/init.d for consistency.
2) Create the control file and put it in /etc/rc.config.d. This allows you to quickly enable or disable a startup script by simply setting the appropriate variable to 1 or 0.
3) Create the startup/shutdown symbolic link at the appropriate run level in /sbin/rc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 07:40 AM
10-21-2002 07:40 AM
Re: how to start a program as a daemon on HP UX
If you mean at boottime, look at the scripts in /sbin/rc2.2 K***** and S****.
Regards
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 07:42 AM
10-21-2002 07:42 AM
Re: how to start a program as a daemon on HP UX
If you really want to understand the startup/shutdown paradigm, see this short, but well-written, extensive discussion here:
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
While originally written for 10.x, this white paper is applicable to all current releases, too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2002 08:40 AM
10-22-2002 08:40 AM
Re: how to start a program as a daemon on HP UX
If you want a process to be inherited by INIT, surround its invocation with parentheses[ie (command)].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2006 08:16 PM
01-08-2006 08:16 PM