LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 12-03-2007, 06:43 AM   #1
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
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.
 
Old 12-03-2007, 07:04 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
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.
 
Old 12-03-2007, 08:09 PM   #3
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
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
 
Old 12-04-2007, 12:55 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
What does your start-up script look like? (please paste it in [code] tags to aide readability)
 
Old 12-04-2007, 11:37 PM   #5
sachinh
Member
 
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
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
}
#------------------------------------------------------------------
 
Old 12-05-2007, 01:38 AM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
And what does the log file contain?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPPD Daemon dies in Suse 9.2 Professional krazykevin SUSE / openSUSE 1 01-17-2005 11:00 PM
My pppd daemon dies unexpectantly. Matt Barnes Slackware 6 12-08-2004 09:51 AM
pppd daemon dies, return value of 4 eed Linux - Networking 0 02-17-2004 09:41 AM
PPPD Daemon dies error code 16 Kirmonkey Linux - Hardware 2 02-04-2004 05:37 PM
PPP Daemon dies on connection, but no when I'm in root Manyguns Linux - Newbie 1 05-27-2001 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration