HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process not starting properly from /sbin/rc3.d on ...
Operating System - HP-UX
1827249
Members
2705
Online
109716
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
12-04-2007 06:54 AM
12-04-2007 06:54 AM
Process not starting properly from /sbin/rc3.d on HPUX
I have a process start that has been put into /sbin/rc3.d as S999nrpe. This should be the last process to start. It is a link to the actual bin directoy and executable file. This executable file lives in /opt/nrpe/bin so the S999nrpe file is just a link back to that file. This executable will not start on reboot. If I am correct the reason is that the S999nrpe should be linked to a startup entry in /sbin/init.d which points to the actual executable in /opt/nrpe/bin. Any suggestions?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 07:09 AM
12-04-2007 07:09 AM
Re: Process not starting properly from /sbin/rc3.d on HPUX
does the sript works on the comand line?
is /etc/rc.log says someting?
is the it a shell script? is so is the first line !#/sbin/ksh (ore a other shell?)
can you replay a
ll /sbin/rc3.d/S999nrpe
ans all the links it is refering to?
is /etc/rc.log says someting?
is the it a shell script? is so is the first line !#/sbin/ksh (ore a other shell?)
can you replay a
ll /sbin/rc3.d/S999nrpe
ans all the links it is refering to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 07:10 AM
12-04-2007 07:10 AM
Re: Process not starting properly from /sbin/rc3.d on HPUX
Hi Craig:
Several comments:
1. Read the 'rc(1M)' manpages and follow the instructions.
2. Use the '/sbin/init.d/template' for your script, but be sure to set the PATH you need and change the '$CONTROL_VARIABLE' to something you define in '/etc/rc.config.d/<scriptname>'.
3. Remember that the environment provided is very sparse. you must define your PATH and are advised to use absolute ones. You will need to define any environmental variables you need, too.
Regards!
...JRF...
Several comments:
1. Read the 'rc(1M)' manpages and follow the instructions.
2. Use the '/sbin/init.d/template' for your script, but be sure to set the PATH you need and change the '$CONTROL_VARIABLE' to something you define in '/etc/rc.config.d/<scriptname>'.
3. Remember that the environment provided is very sparse. you must define your PATH and are advised to use absolute ones. You will need to define any environmental variables you need, too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2007 07:41 AM
12-04-2007 07:41 AM
Re: Process not starting properly from /sbin/rc3.d on HPUX
First make sure that your process starts if you execute it from an interactive shell (e.g. /sbin/init.d/xxxx start). Until that works, you don't have a prayer. However, that is a necessary but not sufficient condition. Your interactive environment may have environment variables defined and exported (including PATH) that your rc'ed script may not. You may need to explicitly set these in your rc script. Finally there is one other difference between an interactive environment and an rc'ed one --- and that is (duh) that it is interactive --- meaning that stdin, stdout, and stderr are connected to a tty (terminal-like) device. If the program expects a tty device for any of these then that can also cause failures.
If it ain't broke, I can fix that.
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP