- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: startup script get executed but process is not...
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
Discussions
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
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
09-21-2004 02:03 PM
09-21-2004 02:03 PM
startup script get executed but process is not running
I am running Documentum product. We put the product start-up into our startup script at run level 3.
I monitor the server during boot up. And notice the following (same result as in /var/adm/rc.log)
1. Documentum script is executed
2. A process ID is created
3. Documentum log file said that it is started with the process id as mentioned above
4. Next i run ps - ef |grep docbroker (docbroker should be the process name created)
Then, the magic started ... I could not find the process. Try to grep the process id also return nothing.
Go back to /var/adm/rc.log, i could not find any line to say that process being terminated.
check on the syslog also couldnt find why the process is not there.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 02:44 PM
09-21-2004 02:44 PM
Re: startup script get executed but process is not running
cd /sbin/rc3.d
or for linux
cd /etc/rc3.d
ln -s /etc/init.d/docscript S99doc #linux
ln -s /sbin/init.d/docscript S99doc #hpux
Now if thats okay then
check the docscript or whatever it is named.
Right after the line that actually starts the daemon,add this code....
rc=$?
echo "return code doc $rc" >> /var/adm/rc.log
If you get a zero, the script is executing all right and the problem is the daemon or deamon configuration. If you get an error you have an start time error and need to figure out whats happening and why its not starting right.
SEP
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
09-21-2004 04:26 PM
09-21-2004 04:26 PM
Re: startup script get executed but process is not running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 08:32 PM
09-26-2004 08:32 PM
Re: startup script get executed but process is not running
i've checked the return value of the script is 0.
when you say something wrong with daemon configuration, what does it mean? any idea how to solve this?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 11:16 PM
09-26-2004 11:16 PM
Re: startup script get executed but process is not running
1> Execute on command line on the shell as
/sbin/init.d/script start
2> Stop and Execute it with debugging mode set -x
( put set -x on the second line after shell inclusion of #!
/sbin/init.d/script start
3> Execute that script in background so that monitor that script's PID with ps for some time.
4> Check weather is there any core file formed there.
Note: Do everything on user terminal execution. No need to boot and test it there.
Send that information to us to further analyse the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:36 PM
09-27-2004 07:36 PM
Re: startup script get executed but process is not running
I think this is on HP-UX server, though this is from Linux category.
When you say the problem may be due to daemon or daemon configuration, or the daemon may be segfaulting, may I know if the daemon is referring to the docbroker process or the HP-UX start-up process (as I never heard of daemon from HP-UX start-up process)?
Btw Sofian, do you encounter any problem if you run the script manually? For eg: /sbin/init.d/script start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:41 PM
09-27-2004 07:41 PM
Re: startup script get executed but process is not running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:54 PM
09-27-2004 07:54 PM
Re: startup script get executed but process is not running
Try to stop the started daemon and try as,
sh -x /sbin/init.d/script start
what are you getting there.
Did you get any related informations to problem there.
Second try as,
Edit the script as,
set -x in the second line after shell preprocessor #! there.
Reboot system and see what is in the rc.log file there. Send it.
Note: If you send more informations and test results so that you will get successful suggestion from ITRC forums.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:58 PM
09-27-2004 07:58 PM
Re: startup script get executed but process is not running
I havent tried, because i dont have any physical access or remote access from my office. I will try doing this tomorrow and revert back to you :)
Thanks so much for your help