"smbcontrol smbd shutdown" not working in samba 4.3
Guru Prasad
gp22online at gmail.com
Tue Sep 20 10:52:27 UTC 2016
Hi All,
I am using Samba-4.3.11.
I am trying to use 'smbcontrol smbd' commandset from my debian linux pc.
But all says "No replies received".
For example,
smbcontrol smbd shutdown
smbcontrol smbd debug
smbcontrol smbd num-children
Please find the strace of the command below.
root at debian:/# ps -eLf | grep smbd
root 5656 3598 5656 0 1 15:31 ? 00:00:00
/usr/local/samba/sbin/smbd -F
root 5657 5656 5657 0 1 15:31 ? 00:00:00
/usr/local/samba/sbin/smbd -F
root 8442 6870 8442 0 1 15:44 pts/0 00:00:00 grep smbd
>>>>>smbcontrol smbd shutdown says
bind(5, {sa_family=AF_FILE, path="/etc/samba/private/msg.sock/7178"}, 110)
= 0
epoll_ctl(3, EPOLL_CTL_ADD, 5, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=13031504,
u64=13031504}}) = 0
open("/tmp/samba/names.tdb", O_RDWR|O_CREAT, 0660) = 6
fcntl(6, F_GETFD) = 0
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
fcntl(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
fcntl(6, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=4, len=1}) = -1
EAGAIN (Resource temporarily unavailable)
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168)
= 168
fstat(6, {st_mode=S_IFREG|0640, st_size=8192, ...}) = 0
fstat(6, {st_mode=S_IFREG|0640, st_size=8192, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0) = 0x7f2107a26000
fcntl(6, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=4, len=1}) = 0
fcntl(6, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
open("/tmp/samba/smbd.pid", O_RDONLY|O_NONBLOCK) = 7
read(7, "5656\n", 19) = 5
kill(5656, SIG_0) = 0
fcntl(7, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=0, len=1}) = -1
EAGAIN (Resource temporarily unavailable)
close(7) = 0
sendmsg(5, {msg_name(110)={sa_family=AF_FILE,
path="/etc/samba/private/msg.sock/5656"}, msg_iov(3)=[{"\0\0\0\0\0\0\0\0",
8},
{"\30\26\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\n\34\0\0\0\0\0\0"...,
52}, {NULL, 0}], msg_controllen=0, msg_flags=0}, 0) = 60
munmap(0x7f2107a26000, 8192) = 0
close(6) = 0
epoll_ctl(3, EPOLL_CTL_DEL, 5, {0, {u32=0, u64=0}}) = 0
close(5) = 0
unlink("/etc/samba/private/msg.sock/7178") = 0
unlink("/tmp/samba/msg.lock/7178") = 0
close(4) = 0
exit_group(0) = ?
But the shutdown signal is still not sent to smbd. I could see the samba
live with pid 5656 again
However i used 4.2.11 samba before.
In that 'smbcontrol smbd shutdown' triggers a shutdown to smbd.
Please help me in this regard.
Thanks
Guruprasad
More information about the samba-technical
mailing list