[Announce] Samba 4.3.5 Available for Download
Jeremy Allison
jra at samba.org
Mon Mar 21 22:40:36 UTC 2016
On Mon, Mar 07, 2016 at 12:26:21AM +0100, Thomas Bork wrote:
> Am 23.02.2016 um 09:02 schrieb Karolin Seeger:
>
> >This is the latest stable release of Samba 4.3.
>
> There must be an problem with the exit status of nmbd and smbd. If
> the configured sockets-dir don't exist, nmbd and smbd cannot start -
> but the exit code is 0 and the pid files exist:
This is coming from :
_PUBLIC_ void exit_daemon(const char *msg, int error)
{
#ifdef HAVE_LIBSYSTEMD_DAEMON
if (msg == NULL) {
msg = strerror(error);
}
sd_notifyf(0, "STATUS=daemon failed to start: %s\n"
"ERRNO=%i",
msg,
error);
#endif
DEBUG(0, ("STATUS=daemon failed to start: %s, error code %d\n", msg, error));
exit(1);
}
I'm guessing the zero is because we've already started
a new session and the exit code from the initial fork/
exit was zero.
> testeis # rm -rf /run/samba
> testeis # nmbd -D
> testeis # echo $?
> 0
> testeis # smbd -D
> testeis # echo $?
> 0
> testeis # cat /var/log/log.nmbd
> [2016/03/07 00:21:12.242675, 0]
> ../lib/util/util.c:220(directory_create_or_exist)
> mkdir failed on directory /run/samba/nmbd: No such file or directory
> [2016/03/07 00:21:12.242706, 0]
> ../source3/nmbd/nmbd_packets.c:48(nmbd_init_packet_server)
> ERROR: nb_packet_server_create failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
> [2016/03/07 00:21:12.242719, 0]
> ../lib/util/become_daemon.c:111(exit_daemon)
> STATUS=daemon failed to start: NMBD failed to setup packet
> server., error code 13
> testeis # cat /var/log/log.smbd
> [2016/03/07 00:21:34.620712, 0]
> ../lib/util/util.c:220(directory_create_or_exist)
> mkdir failed on directory /run/samba/ncalrpc: No such file or directory
> [2016/03/07 00:21:34.620738, 0] ../source3/smbd/server.c:1537(main)
> Failed to create pipe directory /run/samba/ncalrpc - No such file
> or directory
> testeis # ls -l /run | egrep "nmbd|smbd"
> -rw-r--r-- 1 root root 6 Mar 7 00:21 nmbd.pid
> -rw-r--r-- 1 root root 6 Mar 7 00:21 smbd.pid
>
> --
> der tom
>
More information about the samba-technical
mailing list