Merge lp:~andreserl/maas/fix_lp1439159 into lp:~maas-maintainers/maas/packaging

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 374
Merged at revision: 373
Proposed branch: lp:~andreserl/maas/fix_lp1439159
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 35 lines (+12/-2)
2 files modified
debian/maas-dhcp.postinst (+6/-1)
debian/maas-proxy.postinst (+6/-1)
To merge this branch: bzr merge lp:~andreserl/maas/fix_lp1439159
Reviewer Review Type Date Requested Status
Raphaël Badin (community) Approve
Review via email: mp+254901@code.launchpad.net

Commit message

Disable conflicting services, so that maas-proxy or maas-dhcp can run without any issues

To post a comment you must log in.
Revision history for this message
Raphaël Badin (rvb) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/maas-dhcp.postinst'
2--- debian/maas-dhcp.postinst 2014-08-22 13:03:09 +0000
3+++ debian/maas-dhcp.postinst 2015-04-01 12:42:04 +0000
4@@ -6,7 +6,12 @@
5 then
6 # Stop the dhcpd instance that came with the isc-dhcp-server package.
7 # We run our own dhcpd instances.
8- invoke-rc.d isc-dhcp-server stop
9+ if [ -d /run/systemd/system ]; then
10+ systemctl stop isc-dhcp-server >/dev/null || true
11+ systemctl disable isc-dhcp-server >/dev/null || true
12+ else
13+ invoke-rc.d isc-dhcp-server stop
14+ fi
15
16 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
17 if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
18
19=== modified file 'debian/maas-proxy.postinst'
20--- debian/maas-proxy.postinst 2014-09-24 17:14:12 +0000
21+++ debian/maas-proxy.postinst 2015-04-01 12:42:04 +0000
22@@ -6,7 +6,12 @@
23 then
24 # Stop the squid3 instance that came with the isc-dhcp-server package.
25 # We run our own squid3 instances.
26- invoke-rc.d squid3 stop
27+ if [ -d /run/systemd/system ]; then
28+ systemctl stop squid3 >/dev/null || true
29+ systemctl disable squid3 >/dev/null || true
30+ else
31+ invoke-rc.d squid3 stop
32+ fi
33
34 # Ensure log folder is created.
35 mkdir -p /var/log/maas/proxy

Subscribers

People subscribed via source and target branches

to all changes: