Bug 30135 - nmbd processes not stopped after /etc/init.d/samba4 stop
nmbd processes not stopped after /etc/init.d/samba4 stop
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.1-0-errata
Assigned To: Arvid Requate
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-23 17:20 CET by Arvid Requate
Modified: 2013-02-25 14:06 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2013-01-23 17:20:21 CET
On a samba4 DC (with Errata update for Bug #29865 installed) the following command does not stop running nmbd processes:

/etc/init.d/samba4 stop

A "set -x" shows that 
 start-stop-daemon --stop --quiet --name nmbd /var/run/nmbd.pid
is called though, and the pid in /var/run/nmbd.pid is correct as well.

A second call to /etc/init.d/samba4 stop terminates all running nmbd processes.
Comment 1 Arvid Requate univentionstaff 2013-02-13 15:29:27 CET
Fixed in errata3.1-0, ucs3.1-1 will probably ship a new samba4 release (Bug #29755), so this patch will be picked up during that process.

Advisory: 2013-02-12-univention-bind.yaml
Comment 2 Stefan Gohmann univentionstaff 2013-02-21 15:54:26 CET
It doesn't work for me:

root@master501:~# ps -ef | grep -i nmb
root      9139     1  0 08:49 ?        00:00:00 /usr/sbin/nmbd -D
root      9141  9139  0 08:49 ?        00:00:00 /usr/sbin/nmbd -D
root     12308  8648  0 09:13 pts/2    00:00:00 grep -i nmb
root@master501:~# ps -ef | grep -i smbd
root      9156  9155  0 08:49 ?        00:00:00 /usr/sbin/smbd --option=server role check:inhibit=yes --foreground
root      9180  9156  0 08:49 ?        00:00:00 /usr/sbin/smbd --option=server role check:inhibit=yes --foreground
root     12312  8648  0 09:13 pts/2    00:00:00 grep -i smbd
root@master501:~# ps -ef | grep -i samba
root      1006   997  0 08:35 ?        00:00:00 runsv univention-bind-samba4
root      9142     1  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9155  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9157  9142  0 08:49 ?        00:00:01 /usr/sbin/samba -D
root      9158  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9159  9142  0 08:49 ?        00:00:12 /usr/sbin/samba -D
root      9160  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9161  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9162  9142  0 08:49 ?        00:00:01 /usr/sbin/samba -D
root      9163  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9164  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9165  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9166  9142  0 08:49 ?        00:00:00 /usr/sbin/samba -D
root      9187  1006  0 08:49 ?        00:00:00 /usr/sbin/named -c /etc/bind/named.conf.samba4 -f
root     12318  8648  0 09:13 pts/2    00:00:00 grep -i samba
root@master501:~# /etc/init.d/samba4 stop
Stopping Samba 4 daemon: samba.
root@master501:~# ps -ef | grep -i nmb
root      9139     1  0 08:49 ?        00:00:00 /usr/sbin/nmbd -D
root     12337  9139  0 09:14 ?        00:00:00 /usr/sbin/nmbd -D
root     12353  8648  0 09:14 pts/2    00:00:00 grep -i nmb
root@master501:~# ps -ef | grep -i nmb
root      9139     1  0 08:49 ?        00:00:00 /usr/sbin/nmbd -D
root     12337  9139  0 09:14 ?        00:00:00 /usr/sbin/nmbd -D
root     12384  8648  0 09:14 pts/2    00:00:00 grep -i nmb
root@master501:~# /etc/init.d/samba4 stop
Stopping Samba 4 daemon: sambastart-stop-daemon: warning: failed to kill 9139: No such process
.
root@master501:~# ps -ef | grep -i nmb
root     12399  8648  0 09:14 pts/2    00:00:00 grep -i nmb
root@master501:~#
Comment 3 Stefan Gohmann univentionstaff 2013-02-21 16:02:45 CET
My fault, I didn't test with the latest S4 version.
Comment 4 Stefan Gohmann univentionstaff 2013-02-21 16:26:56 CET
(In reply to comment #1)
> Advisory: 2013-02-12-univention-bind.yaml

→ 2013-02-11-samba4.yaml

YAML: OK

Function errata: OK

Changelog: OK

Function 3.1-1: - (see Bug #30178)
Comment 5 Moritz Muehlenhoff univentionstaff 2013-02-25 14:06:16 CET
http://errata.univention.de/3.1-errata45.html