- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: start up script in rc3.d
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
Forums
Discussions
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
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-01-2007 04:11 AM
10-01-2007 04:11 AM
start up script in rc3.d
I have a script in boot level rc3.d which doesn't execute the command into in.
I have included "set -x" trace in the script and I can see the ouput in rc.log and everything seems OK.
I cannot see any errors in rc.log related to this script and the Paths are defined correctly.
The only problem is the command (PatrolAgent) is not executed for some weird reason.
I can also run the script manually as root.
Any ideas? Anything to check?
P.S. I haven't included anything in /etc/rc.config.d. Is it mandatory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2007 04:17 AM
10-01-2007 04:17 AM
Re: start up script in rc3.d
The template uses a user defined control variable either set to 1 for yes or other_value for no.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2007 04:20 AM
10-01-2007 04:20 AM
Re: start up script in rc3.d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2007 08:27 PM
10-01-2007 08:27 PM
Re: start up script in rc3.d
I'm not using a template based script, it is a custom one.
The PATH environment variable is exported within the script, and it's not the problem, since the trace shows the entire path to the exec command.
The stdout could be an issue, since my command generates an output. To avoid this I have added
> /dev/null 2&>1. Is it correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2007 12:14 AM
10-02-2007 12:14 AM
Re: start up script in rc3.d
the standard option
"filename.sh" >/dev/null 2>&1
to redirect is right.
Best regards.
Ernesto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2007 02:01 AM
10-02-2007 02:01 AM
Re: start up script in rc3.d
> /dev/null 2&>1
should be:
> /dev/null 2>&1
but note that there may be many more environment variables required than simply PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2007 02:42 AM
10-03-2007 02:42 AM
Re: start up script in rc3.d
Anyway, the most weird thing is that in some systems the script works OK at system boot but it does not in other identical systems.
Thanks and regards.