- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- csh startup script
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
11-13-2002 06:43 PM
11-13-2002 06:43 PM
i would like to pick some brains please. I have created a csh startup script in /sbin/init.d directory. I have also created the symbolic links to Start and Kill these process when the server comes up and goes down.
When i test this script manually the process is started and stopped.
However, when i try rebooting the server, the rc.log tells me that the process has been started.
starting mpnet daemon: srvstart mpnet
Output from "/sbin/rc2.d/S900mpnet start":
----------------------------
Masterpiece Net Daemon Startup in progress
Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
[1] 1077
mpmaster 1077 1073 0 13:31:29 console 0:00 mpcommsrv mpnet -s -j
mpnet daemon started
however, when i check to see if the process is actually running i get nothing.
#ps -ef | grep mpnet
root@k
Ive checked the ownership and file permissions of the file and they are owned by bin:bin and have permissions 555 set.
Any ideas, as i am fresh out of what i can try next.
Thanks in advance for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 07:21 PM
11-13-2002 07:21 PM
Re: csh startup script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 08:15 PM
11-13-2002 08:15 PM
Re: csh startup script
I have tried your suggestion and moved the it to rc3.d
however, im still getting the same problem.
ie, rc.log says it has started up however, there is no record in the process listing.
starting mpnet daemon: srvstart mpnet
Output from "/sbin/rc3.d/S990mpnet start":
----------------------------
Masterpiece Net Daemon Startup in progress
Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
[1] 1156
mpmaster 1156 1152 1 15:15:37 console 0:00 mpcommsrv mpnet -s -j
mpnet daemon started
**************************************************
Thanks
maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 06:52 AM
11-14-2002 06:52 AM
SolutionIt looks like your script does start but then dies for some reason. I've had the same problem. The application vendor was no help so I came up with the following, crude work-around.
I check to see if the rc script is being called at boot (/sbin/rc is running). If so, I schedule an at job to re-run the rc script in 5 minutes. I've not had a problem since.
If you do this, just be sure the rc script is the last one to run (or at least make sure that /sbin/rc will have completed within 5 minutes).
# If called at boot time schedule an at job because the daemon starts then dies when called by /sbin/rc
/usr/bin/ps -ef | grep -q [/]sbin/rc
if [ $? -eq 0 ]
then
echo "/path_to_my_script >>/var/tmp/script.log 2>&1" | at now + 5 minutes
exit
fi
# normal "start" commands go here
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 07:10 AM
11-14-2002 07:10 AM
Re: csh startup script
Try launching the process in the background with 'nohup'.
Make sure too, sure that the environment variables are defined, particularly PATH.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 06:17 PM
11-14-2002 06:17 PM
Re: csh startup script
after much testing Darrell the additions seam to have worked well.
I appreciate your help and thank-you kindly.
I aslo tried the nohup command (since it was a lot less work) however, that did the same thing. ie startup and then die.
Once again,
thank-you all for helping me.