GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Start daemons upon bootup
Operating System - HP-UX
1847514
Members
4688
Online
110265
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-21-1999 01:59 AM
12-21-1999 01:59 AM
Start daemons upon bootup
I am trying to have a couple application daemons start upon bootup. I know cron
will schedule to have an item run, but only at a specified time or day.
What does it take to make this happen?
Thanks in advance!
will schedule to have an item run, but only at a specified time or day.
What does it take to make this happen?
Thanks in advance!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-1999 08:15 AM
12-21-1999 08:15 AM
Re: Start daemons upon bootup
The first thing you need to do is look at a file called /sbin/init.d/template
copy this file to the name of your daemon and edit it to include your daemon
executables and any other things you need to do. You can look at some of the
other scripts in their if you need more help.
Once you have finished have a look at /etc/rc.config.d this is where the
customisation files for all the executable scripts in /sbin/init.d are stored.
Add the appropriate file for your daemon, here again you can look at some of
the examples.
Now you have to decide what run level you want to start your daemon up in
usually this will be in Run-Level 2 or 3 once you have decided this add a link
from either /sbin/rc2.d or rc3.d to the startup file you created in
/sbin/init.d
The naming conventions of these files follow the following sequence
/sbin/rc2.d/S990mydaemon
rc2.d --> Run Level
S --> Type this can be either S-startup or K-shutdown
730 --> sequence number
mydaemon -->Service name
When the system comes up /sbin/rc executes the "S" scripts in the respective
rc*.d directories in increasing order. When the system comes down /sbin/rc
executes the "K" scripts in the appropriate directory in ascending order by
number.
Hope this helps,
AG
copy this file to the name of your daemon and edit it to include your daemon
executables and any other things you need to do. You can look at some of the
other scripts in their if you need more help.
Once you have finished have a look at /etc/rc.config.d this is where the
customisation files for all the executable scripts in /sbin/init.d are stored.
Add the appropriate file for your daemon, here again you can look at some of
the examples.
Now you have to decide what run level you want to start your daemon up in
usually this will be in Run-Level 2 or 3 once you have decided this add a link
from either /sbin/rc2.d or rc3.d to the startup file you created in
/sbin/init.d
The naming conventions of these files follow the following sequence
/sbin/rc2.d/S990mydaemon
rc2.d --> Run Level
S --> Type this can be either S-startup or K-shutdown
730 --> sequence number
mydaemon -->Service name
When the system comes up /sbin/rc executes the "S" scripts in the respective
rc*.d directories in increasing order. When the system comes down /sbin/rc
executes the "K" scripts in the appropriate directory in ascending order by
number.
Hope this helps,
AG
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP