Date: Fri, 5 Jul 2002 08:06:07 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Roger Merritt <mcrogerm@stjohn.ac.th> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Disappearing Daemon? Message-ID: <20020705070607.GA259@happy-idiot-talk.infracaninophi> In-Reply-To: <3.0.6.32.20020705114443.007aa820@stjohn.stjohn.ac.th> References: <3.0.6.32.20020705114443.007aa820@stjohn.stjohn.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 05, 2002 at 11:44:43AM +0700, Roger Merritt wrote: > The behavior I see when I try it manually is: > [root@kepler:~]# /usr/local/sbin/smbd -D > [root@kepler:~]# ps -aux | grep smbd > root 92332 0.0 0.9 1036 528 p0 R+ 11:13AM 0:00.01 grep smbd > [root@kepler:~]# kill -HUP `cat /var/run/smbd.pid` > su: kill: (92040) - No such pid > > so the process is being started, and then just vanishes. I've tried running > it with debug level set to 3 or 4, but nothing shows up in the log except > smbd starting and loading some parameters. None of the Win98 computers on > the subnet can see Try using truss(1) to trace the system calls that smbd is making. If you're lucky this will give you sufficient information that you can work out what's happening. Note that you might have to drop the `-D' daemonize flag to get anything meaningful: truss -o /tmp/smbd.truss /usr/local/sbin/smbd There's also ktrace(1) which is the next level up in process tracing, but significantly more complex. ktrace(1) can follow descendants of the initial process and can generate large quantities of output so read the ktrace(1) and kdump(1) man pages first and use with due care and attention: ktrace -id -f /tmp/smbd.ktrace /usr/local/sbin/smbd -D kdump -f /tmp/smbd.ktrace | less Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020705070607.GA259>