samba 2.2.7a nmbd restart problem
Steve Hardy
steve at connectux.com
Tue Aug 5 09:58:07 GMT 2003
We had this problem, and upgrading to 2.2.8a solves it.
On Mon, 4 Aug 2003, Ciulei Claudiu wrote:
>
> Hi
>
> I've upgraded my server to samba 2.2.7a onto a RH 90 Linux distribution and I
> have a strange problem with the smb script restart.
> I run at 3.00 an crontab script to restart samba services. It returns OK but
> the nmbd server is not restarted.
> It seems that the SIGTERM signal is not transmitted to the nmbd server and it
> start another process who is block the old nmbd process
> If I run the same script under console the messages is OK, nmbd get the
> message GOT SIGTERM and is shutting down OK and after this is got UP again
> without problem.
> In crontab is a script with a single line -- smb restart -- who is run under
> user root exactly like under console.
>
> Do you have any ideea why is happend this ?
>
> example
> under CRONTAB
>
> [2003/08/03 03:00:01, 0, pid=17212, effective(0, 0), real(0, 0)]
> nmbd/asyncdns.c:start_async_dns(148)
> started asyncdns process 21780
> [2003/08/03 03:00:01, 0] nmbd/nmbd.c:main(794)
> Netbios nameserver version 2.2.7a started.
> Copyright Andrew Tridgell and the Samba Team 1994-2002
> [2003/08/03 03:00:01, 1] lib/debug.c:debug_message(258)
> INFO: Debug class all level = 2 (pid 21790 from pid 21790)
> [2003/08/03 03:00:01, 2, pid=21790, effective(0, 0), real(0, 0)]
> nmbd/nmbd.c:main(832)
> Becoming a daemon.
> [2003/08/03 03:00:01, 0, pid=21791, effective(0, 0), real(0, 0)]
> nmbd/asyncdns.c:start_async_dns(148)
> started asyncdns process 21792
> [2003/08/03 03:00:01, 0, pid=21791, effective(0, 0), real(0, 0)]
> lib/pidfile.c:pidfile_create(86)
> ERROR: nmbd is already running. File /var/run/samba/nmbd.pid exists and
> process id 17212 is running.
>
>
> example
> under CONSOLE
>
> [2003/08/03 08:38:23, 0, pid=17212, effective(0, 0), real(0, 0)]
> nmbd/nmbd.c:terminate(59)
> Got SIGTERM: going down...
> [2003/08/03 08:39:17, 0] nmbd/nmbd.c:main(794)
> Netbios nameserver version 2.2.7a started.
> Copyright Andrew Tridgell and the Samba Team 1994-2002
> [2003/08/03 08:39:17, 1] lib/debug.c:debug_message(258)
> INFO: Debug class all level = 2 (pid 28158 from pid 28158)
> [2003/08/03 08:39:17, 2, pid=28158, effective(0, 0), real(0, 0)]
> nmbd/nmbd.c:main(832)
> Becoming a daemon.
> [2003/08/03 08:39:17, 0, pid=28159, effective(0, 0), real(0, 0)]
> nmbd/asyncdns.c:start_async_dns(148)
> started asyncdns process 28160
> [2003/08/03 08:39:17, 2, pid=28159, effective(0, 0), real(0, 0)]
> lib/interface.c:add_interface(81)
> added interface ip=192.168.4.1 bcast=192.168.4.255 nmask=255.255.255.0
> [2003/08/03 08:39:17, 2, pid=28159, effective(0, 0), real(0, 0)]
> lib/interface.c:add_interface(81)
> added interface ip=192.168.1.99 bcast=192.168.1.255 nmask=255.255.255.0
> [2003/08/03 08:39:17, 2, pid=28159, effective(0, 0), real(0, 0)]
> lib/interface.c:add_interface(81)
>
> thank you
>
> Claudiu CIULEI
> network engineer
> PANEURO GROUP
> ROMANIA
> e-mail: cciulei at paneuro.ro
>
>
More information about the samba-technical
mailing list