HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - AUTOSTART a daemon at boot time
 
Operating System - HP-UX
        1840158
        Members
    
    
        3104
        Online
    
    
        110162
        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
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
 
08-11-2009 11:48 AM
08-11-2009 11:48 AM
			
				
					
						
							AUTOSTART a daemon at boot time
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi, I would like to autostart a Nagios daemon at boot time using the command /opt/iexpress/nagios/bin/nrpe -c /opt/iexpress/nagios/etc/nrpe.cfg -d
How exactly do I fit this in the /sbin/rc3.d scenario?
Am running hp-ux 11v2.
Thanks
		
		
	
	
	
How exactly do I fit this in the /sbin/rc3.d scenario?
Am running hp-ux 11v2.
Thanks
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
08-11-2009 11:57 AM
08-11-2009 11:57 AM
			
				
					
						
							Re: AUTOSTART a daemon at boot time
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi:
Have a look at the 'rc(1M)' manpages or this whitepaper. Either source describes the run-level paradigm used in HP-UX. Be sure to follow the simple steps and rules and you will have no problems with implementing start/stop scripts and daemons.
http://docs.hp.com/en/934/startup.pdf
http://docs.hp.com/en/B2355-60130/rc.1M.html
Regards!
...JRF...
		
		
	
	
	
Have a look at the 'rc(1M)' manpages or this whitepaper. Either source describes the run-level paradigm used in HP-UX. Be sure to follow the simple steps and rules and you will have no problems with implementing start/stop scripts and daemons.
http://docs.hp.com/en/934/startup.pdf
http://docs.hp.com/en/B2355-60130/rc.1M.html
Regards!
...JRF...
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
08-11-2009 12:21 PM
08-11-2009 12:21 PM
			
				
					
						
							Re: AUTOSTART a daemon at boot time
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Shalom,
Most HP-UX ported software configurations include a configuration options file in /etc/rc.config.d
There is usually an auto start variable in there that you set to 1 for automatic daemon start.
Otherwise you will need to softlink to the startup script a start captial S to start in rc3.d and K to kill in rc2.d
SEP
		
		
	
	
	
Most HP-UX ported software configurations include a configuration options file in /etc/rc.config.d
There is usually an auto start variable in there that you set to 1 for automatic daemon start.
Otherwise you will need to softlink to the startup script a start captial S to start in rc3.d and K to kill in rc2.d
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		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
 
08-11-2009 01:40 PM
08-11-2009 01:40 PM
			
				
					
						
							Re: AUTOSTART a daemon at boot time
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						You need to do several things to start Nagios.
First prepare a file under /etc/init.d with a name like nagios. It should look like other application startup files.
Then have a file ready in /etc/rc.config.d/, which is the switch for startup process. You can find similar files in the same directory.
Finally, you make a link in /etc/rc3.d for startup and/or in /etc/rc2.d for shut down Nagios by using ln -s /etc/init.d/nagios /etc/rc3.d/S***nagios and ln -s /etc/init.d/nagios /etc/rc2.d/Kxxxnagios. The *** and xxx are 3 digit numbers and their sum supposed to be 1000.
Or you can start nagios in another way, that have it in /etc/inetd.conf file. Nagios's manual should have more details about it.
		
		
	
	
	
First prepare a file under /etc/init.d with a name like nagios. It should look like other application startup files.
Then have a file ready in /etc/rc.config.d/, which is the switch for startup process. You can find similar files in the same directory.
Finally, you make a link in /etc/rc3.d for startup and/or in /etc/rc2.d for shut down Nagios by using ln -s /etc/init.d/nagios /etc/rc3.d/S***nagios and ln -s /etc/init.d/nagios /etc/rc2.d/Kxxxnagios. The *** and xxx are 3 digit numbers and their sum supposed to be 1000.
Or you can start nagios in another way, that have it in /etc/inetd.conf file. Nagios's manual should have more details about it.
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 2025 Hewlett Packard Enterprise Development LP