From owner-freebsd-questions Wed Jul 3 17:51:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A663137B40A for ; Wed, 3 Jul 2002 17:51:52 -0700 (PDT) Received: from stjohn.stjohn.ac.th (stjohn.stjohn.ac.th [202.21.144.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD6EA43E31 for ; Wed, 3 Jul 2002 17:51:50 -0700 (PDT) (envelope-from mcrogerm@stjohn.ac.th) Received: from tulip ([203.151.134.104]) by stjohn.stjohn.ac.th (8.9.3+Sun/8.9.3) with SMTP id RAA09942 for ; Wed, 3 Jul 2002 17:51:12 -0700 (GMT) Message-Id: <3.0.6.32.20020704075143.007a27b0@stjohn.stjohn.ac.th> X-Sender: mcrogerm@stjohn.stjohn.ac.th X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 04 Jul 2002 07:51:43 +0700 To: freebsd-questions@FreeBSD.ORG From: Roger Merritt Subject: Re: Samba disappears? In-Reply-To: References: <3.0.6.32.20020703091839.007f6180@stjohn.stjohn.ac.th> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 11:28 PM 7/3/02 +1000, you wrote: >On Wed, 3 Jul 2002, Roger Merritt wrote: > >> I've just discovered that in the last month or so one of my servers is >> behaving strangely. The Samba daemon starts up normally, but then the >> process disappears. When I run 'ps -aux | grep smb' the only process that > >Try 'ps auxww | grep smb' and you may see the processes. Without the ww >the process names outputed by ps may be truncated due to your terminal >width. > >Steve > >> shows up is grep. I've tried running it from the command line with the >> debug flag set, but the log doesn't show anything -- it shows the daemon >> starting, loading parameters, and then nothing. The .pid file remains in >> /var/run, but there's no process active. >> >> I'm currently running FreeBSD 4.5: >> [root@kepler:~]# uname -a >> FreeBSD kepler.implab.ac.th 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Feb 27 >> 08:29:05 ICT 2002 root@kepler.implab.ac.th:/usr/obj/usr/src/sys/KEPLER >> i386 >> >> and [root@kepler:~]# /usr/local/sbin/smbd -V >> Version 2.0.7 >> >> I can't tell exactly when this behavior started, but it's only been a month >> or six weeks. Natd is working fine, so all the Win98 boxes connected to >> this server can connect to the Internet (the most important function), but >> they can't see the server as a Windoze resource, so I can't install from >> it. I obviously must have changed something, because it used to work fine, >> but I can't remember what changed in that time period except for upgrading >> Mozilla. >> >> Can anyone suggest what I might try to find out what is causing the process >> to disappear? I'm reluctant to upgrade Samba. >> -- >> Roger >> >> You're only young once, >> but you can be immature forever! >> Thanks, but that doesn't help. It's not a problem with ps. Look, if I do this: [root@kepler:~]# ls /var/run/sm* /var/run/smbd.pid [root@kepler:~]# kill -HUP `cat /var/run/smbd.pid` su: kill: (154) - No such pid Is the process dying because it can't find some resource/library? I thought a *lot* of people were still running Samba 2.0.7 on FreeBSD. Should I try upgrading? The port is samba-2.2.4_1, but I'm always afraid of breaking Samba when I upgrade -- well, it's broken already, isn't it? Any advice/suggestions would be appreciated. -- Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message