- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: startup script starts then disappears..
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
Discussions
Discussions
Forums
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
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
тАО03-06-2003 08:05 AM
тАО03-06-2003 08:05 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 08:12 AM
тАО03-06-2003 08:12 AM
SolutionOtherwise you can switch on process auditing. See man 1m audevent. You can monitor processes for what calls they make and their exit status and then use audisp to display this info back once it dies to see what happened.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 08:12 AM
тАО03-06-2003 08:12 AM
Re: startup script starts then disappears..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 08:15 AM
тАО03-06-2003 08:15 AM
Re: startup script starts then disappears..
scriptname > /tmp/start.log 2>&1
That will capture any error output.
It will most likely be an environment problem (ie the path to an executable you are trying to call has not been defined). I usually include a PATH statement:
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
at the start of the init script.
You might also want to look at no-hupping the script if it is meant to run continually in the background:
nohup scriptname > /tmp/start.log 2>&1 &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2003 08:15 AM
тАО03-06-2003 08:15 AM
Re: startup script starts then disappears..
scriptname > /tmp/start.log 2>&1
in your init file. That will capture any error output.
It will most likely be an environment problem (ie the path to an executable you are trying to call has not been defined). I usually include a PATH statement:
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
at the start of the init script.
You might also want to look at no-hupping the script if it is meant to run continually in the background:
nohup scriptname > /tmp/start.log 2>&1 &