Merge lp:~james-page/ubuntu/quantal/samba/cups-integration into lp:ubuntu/quantal/samba

Proposed by James Page
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~james-page/ubuntu/quantal/samba/cups-integration
Merge into: lp:ubuntu/quantal/samba
Diff against target: 49 lines (+22/-4)
3 files modified
debian/changelog (+10/-0)
debian/samba.reload-smbd.conf (+12/-0)
debian/samba.smbd.upstart (+0/-4)
To merge this branch: bzr merge lp:~james-page/ubuntu/quantal/samba/cups-integration
Reviewer Review Type Date Requested Status
Steve Langasek Needs Fixing
Review via email: mp+123503@code.launchpad.net

Description of the change

Refactored integration with cups to ensure that samba configuration is reloaded after cups has started.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

+ - d/samba.reload-smbd.upstart: Add upstart task which reloads smbd
<snip>
=== added file 'debian/samba.reload-smbd.conf'

mismatched names; should really be .upstart.

Also, looks like a change to debian/rules is missing here to get debhelper to install the added script (dh_installinit -psamba --upstart-only --no-start --name reload-smbd)

Otherwise, looks good.

review: Needs Fixing
Revision history for this message
James Page (james-page) wrote :

Issues fixed, uploaded to quantal

Thanks for the feedback.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-09-07 10:58:08 +0000
3+++ debian/changelog 2012-09-10 08:26:17 +0000
4@@ -1,3 +1,13 @@
5+samba (2:3.6.6-3ubuntu3) quantal; urgency=low
6+
7+ * Decouple startup of smbd from cups (LP: #1047262):
8+ - d/samba.smbd.upstart: Revert changes made in 2:3.6.6-3ubuntu2.
9+ - d/samba.reload-smbd.upstart: Add upstart task which reloads smbd
10+ once cups has started, ensuring that smbd startup is decoupled
11+ from cups.
12+
13+ -- James Page <james.page@ubuntu.com> Mon, 10 Sep 2012 09:23:14 +0100
14+
15 samba (2:3.6.6-3ubuntu2) quantal; urgency=low
16
17 * Ensure samba can query cups for printer information on startup
18
19=== added file 'debian/samba.reload-smbd.conf'
20--- debian/samba.reload-smbd.conf 1970-01-01 00:00:00 +0000
21+++ debian/samba.reload-smbd.conf 2012-09-10 08:26:17 +0000
22@@ -0,0 +1,12 @@
23+description "Samba Auto-reload Integration"
24+author "James Page <james.page@ubuntu.com>"
25+
26+start on started cups
27+
28+task
29+
30+script
31+ if status smbd | grep -q "running"; then
32+ reload smbd
33+ fi
34+end script
35
36=== modified file 'debian/samba.smbd.upstart'
37--- debian/samba.smbd.upstart 2012-09-07 10:58:08 +0000
38+++ debian/samba.smbd.upstart 2012-09-10 08:26:17 +0000
39@@ -14,10 +14,6 @@
40 [ "$RUN_MODE" = inetd ] && { stop; exit 0; }
41
42 install -o root -g root -m 755 -d /var/run/samba
43-
44- if status cups >/dev/null ; then
45- start wait-for-state WAITER=smbd WAIT_FOR=cups WAIT_STATE=running
46- fi
47 end script
48
49 exec smbd -F

Subscribers

People subscribed via source and target branches

to all changes: