Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-03-2007, 06:43 AM
|
#1
|
|
Member
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189
Rep:
|
daemon dies !!!!!!!!
Hi,
Lets say we have got a daemon called test on one of our application server. We initiate the same at the system startup using script. But daemon is not starting through this script. It shows as Daemon started alongwith the pid in Log files but seems it dies as soon as it starts. Is there any way we can trace the cause of the error??
One more thing, when we manually start this daemon using the script, it starts perfectly.
Can anyone suggest/give any kind of hint as we seem to have confused by now.
Thanx in advance.
|
|
|
|
12-03-2007, 07:04 AM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
So you start some program using some script on some system, and want to know why it fails? I think you're going to have to provide some more information before you can realistically expect any helpful answers.
|
|
|
|
12-03-2007, 08:09 PM
|
#3
|
|
Member
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189
Original Poster
Rep:
|
Ok....I wanted to ask this on a general terms. But if this doesnt help then here it goes.....
The system is Dell 6350 make, with RedHat Linux 2.1 installed on it. The application which we are running on it is UNIFTP. Out startup script ideally should initiate 2 daemons of uniftpd
i> dc & ii> no_dc . But when system boots, it only does start the process for dc and for no_dc (log says) it starts and dies immediately.
Let me know if things are bit clear by now if not plzzz ask me any questions.
Thanx
|
|
|
|
12-04-2007, 12:55 AM
|
#4
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
What does your start-up script look like? (please paste it in [code] tags to aide readability)
|
|
|
|
12-04-2007, 11:37 PM
|
#5
|
|
Member
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189
Original Poster
Rep:
|
Code:
# start two daemons for dc and no_dc
print "\nStarting parent process for DC"
date >> $home_dir/uniftpdSTORES.log
$home_dir/uniftpd DC >> $home_dir/uniftpdDC.log 2>&1
date >> $home_dir/uniftpdNODC.log
print "\nStarting parent process for NODC"
$home_dir/uniftpd NODC >> $home_dir/uniftpdNODC.log 2>&1
# terminate a process
#------------------------------------------------------------------
function terminate
{
pid=$(ps -eo pid,command -u $account | grep $1 |grep -v grep | awk '{print $1}')
if [[ $pid = "" ]] ; then
return
fi
print "\nShutting down old version of $1"
print "kill -9 $pid"
kill -9 $pid
}
#------------------------------------------------------------------
|
|
|
|
12-05-2007, 01:38 AM
|
#6
|
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
And what does the log file contain?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|