Merge ~paelzer/ubuntu/+source/samba:lp-1792400-avoid-container-pid-confusion-trusty into ubuntu/+source/samba:ubuntu/trusty-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 205a6f2bb1852c1b099cdd6fcd7a28e1db390099
Merged at revision: 205a6f2bb1852c1b099cdd6fcd7a28e1db390099
Proposed branch: ~paelzer/ubuntu/+source/samba:lp-1792400-avoid-container-pid-confusion-trusty
Merge into: ubuntu/+source/samba:ubuntu/trusty-devel
Diff against target: 107 lines (+20/-8)
5 files modified
debian/changelog (+12/-0)
debian/samba.nmbd.init (+2/-2)
debian/samba.samba-ad-dc.init (+2/-2)
debian/samba.smbd.init (+2/-2)
debian/winbind.init (+2/-2)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+356793@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Xenial SRU completed and did not trigger any unexpected hiccup after a few days.
Lets also fix up trusty.

Autopkg Tests will be scheduled https://bileto.ubuntu.com/#/ticket/3481
PPA: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3481

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI: The Bug has an SRU Template with test instructions

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Verified it's the same change as done in xenial, and the samba version is the same too (4.3.11).

+1

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Bileto only shows the usual gvfs failure. Still a +1.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Autopkgtests are all good.
gvfs on ppc is the only outlier but it is a known bad-case and has an override:
vorlon:21:force-badtest gvfs/1.20.3-0ubuntu1.2

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Tag pushed and uploaded to Trusty-unapproved

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index af969c6..73d899c 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,15 @@
6+samba (2:4.3.11+dfsg-0ubuntu0.14.04.18) trusty; urgency=medium
7+
8+ * d/samba.nmbd.init, d/samba.samba-ad-dc.init, d/samba.smbd.init,
9+ d/winbind.init avoid issues due to init scripts misdetecting
10+ services (LP: #1792400)
11+ - use --pidfile on --start to not block on same binaries running in
12+ containers
13+ - use --exec on --stop to not cause unintended processes to be acted on,
14+ if the old process terminated without being able to remove the pid-file.
15+
16+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 16 Oct 2018 09:55:34 +0200
17+
18 samba (2:4.3.11+dfsg-0ubuntu0.14.04.17) trusty; urgency=medium
19
20 * d/p/bug_1583324_include_with_macro.patch: don't fail parsing the
21diff --git a/debian/samba.nmbd.init b/debian/samba.nmbd.init
22index 97a89d4..df78f28 100644
23--- a/debian/samba.nmbd.init
24+++ b/debian/samba.nmbd.init
25@@ -41,7 +41,7 @@ case $1 in
26 # Make sure we have our PIDDIR, even if it's on a tmpfs
27 install -o root -g root -m 755 -d $PIDDIR
28
29- if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/nmbd -- -D
30+ if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/nmbd --pidfile $NMBDPID -- -D
31 then
32 log_end_msg 1
33 exit 1
34@@ -57,7 +57,7 @@ case $1 in
35
36 log_daemon_msg "Stopping NetBIOS name server" nmbd
37
38- start-stop-daemon --stop --quiet --pidfile $NMBDPID
39+ start-stop-daemon --stop --quiet --exec /usr/sbin/nmbd --pidfile $NMBDPID
40 # Wait a little and remove stale PID file
41 sleep 1
42 if [ -f $NMBDPID ] && ! ps h `cat $NMBDPID` > /dev/null
43diff --git a/debian/samba.samba-ad-dc.init b/debian/samba.samba-ad-dc.init
44index 3132d2e..7c92c4b 100644
45--- a/debian/samba.samba-ad-dc.init
46+++ b/debian/samba.samba-ad-dc.init
47@@ -54,7 +54,7 @@ case "$1" in
48 # Make sure we have our PIDDIR, even if it's on a tmpfs
49 install -o root -g root -m 755 -d $PIDDIR
50
51- if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/samba -- -D; then
52+ if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/samba --pidfile $SAMBAPID -- -D; then
53 log_end_msg 1
54 exit 1
55 fi
56@@ -67,7 +67,7 @@ case "$1" in
57 fi
58 log_daemon_msg "Stopping Samba AD DC daemon" "samba"
59
60- start-stop-daemon --stop --quiet --pidfile $SAMBAPID
61+ start-stop-daemon --stop --quiet --exec /usr/sbin/samba --pidfile $SAMBAPID
62 # Wait a little and remove stale PID file
63 sleep 1
64 if [ -f $SAMBAPID ] && ! ps h `cat $SAMBAPID` > /dev/null
65diff --git a/debian/samba.smbd.init b/debian/samba.smbd.init
66index 3db327e..93e8d13 100644
67--- a/debian/samba.smbd.init
68+++ b/debian/samba.smbd.init
69@@ -37,7 +37,7 @@ case $1 in
70 # Make sure we have our PIDDIR, even if it's on a tmpfs
71 install -o root -g root -m 755 -d $PIDDIR
72
73- if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd -- -D; then
74+ if ! start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd --pidfile $SMBDPID -- -D; then
75 log_end_msg 1
76 exit 1
77 fi
78@@ -51,7 +51,7 @@ case $1 in
79
80 log_daemon_msg "Stopping SMB/CIFS daemon" smbd
81
82- start-stop-daemon --stop --quiet --pidfile $SMBDPID
83+ start-stop-daemon --stop --quiet --exec /usr/sbin/smbd --pidfile $SMBDPID
84 # Wait a little and remove stale PID file
85 sleep 1
86 if [ -f $SMBDPID ] && ! ps h `cat $SMBDPID` > /dev/null
87diff --git a/debian/winbind.init b/debian/winbind.init
88index 6c0ec05..d8333f4 100644
89--- a/debian/winbind.init
90+++ b/debian/winbind.init
91@@ -42,7 +42,7 @@ case "$1" in
92 mkdir -p /var/run/samba/winbindd_privileged || return 1
93 chgrp winbindd_priv $PIDDIR/winbindd_privileged/ || return 1
94 chmod 0750 $PIDDIR/winbindd_privileged/ || return 1
95- start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $WINBINDD_OPTS
96+ start-stop-daemon --start --quiet --oknodo --exec $DAEMON --pidfile $WINBINDPID -- $WINBINDD_OPTS
97
98 log_end_msg $?
99 ;;
100@@ -52,7 +52,7 @@ case "$1" in
101 exit 0
102 fi
103 log_daemon_msg "Stopping the Winbind daemon" "winbind"
104- start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
105+ start-stop-daemon --stop --quiet --oknodo --exec $DAEMON --pidfile $WINBINDPID
106 log_end_msg $?
107 ;;
108

Subscribers

People subscribed via source and target branches