Merge lp:~darkmuggle-deactivatedaccount/ubuntu/saucy/hv-kvp-daemon-init/lp1235025 into lp:ubuntu/saucy/hv-kvp-daemon-init

Proposed by Ben Howard
Status: Merged
Merged at revision: 9
Proposed branch: lp:~darkmuggle-deactivatedaccount/ubuntu/saucy/hv-kvp-daemon-init/lp1235025
Merge into: lp:ubuntu/saucy/hv-kvp-daemon-init
Diff against target: 143 lines (+45/-52)
7 files modified
debian/changelog (+7/-0)
debian/install (+2/-1)
debian/preinst (+0/-8)
debian/upstart (+0/-18)
hv-kvp-daemon.conf (+18/-0)
hv-vss-daemon.conf (+18/-0)
hv_kvp_daemon (+0/-25)
To merge this branch: bzr merge lp:~darkmuggle-deactivatedaccount/ubuntu/saucy/hv-kvp-daemon-init/lp1235025
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+189933@code.launchpad.net
To post a comment you must log in.

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 2013-04-22 03:10:52 +0000
3+++ debian/changelog 2013-10-08 18:13:07 +0000
4@@ -1,3 +1,10 @@
5+hv-kvp-daemon-init (0.3ubuntu6) saucy; urgency=low
6+
7+ * Added vss init job
8+ * Use linux-tools packaged scripts for starting daemons
9+
10+ -- Ben Howard <ben.howard@ubuntu.com> Fri, 04 Oct 2013 15:28:33 -0600
11+
12 hv-kvp-daemon-init (0.3ubuntu5) raring; urgency=low
13
14 * Restrict arches to amd64, i386, and x32 to match hv_netvsc module.
15
16=== modified file 'debian/install'
17--- debian/install 2012-12-14 17:10:34 +0000
18+++ debian/install 2013-10-08 18:13:07 +0000
19@@ -1,4 +1,5 @@
20 hv_get_dhcp_info usr/sbin
21 hv_get_dns_info usr/sbin
22 hv_set_ifconfig usr/sbin
23-hv_kvp_daemon usr/sbin
24+hv-kvp-daemon.conf etc/init
25+hv-vss-daemon.conf etc/init
26
27=== modified file 'debian/preinst'
28--- debian/preinst 2012-12-14 17:10:34 +0000
29+++ debian/preinst 2013-10-08 18:13:07 +0000
30@@ -2,14 +2,6 @@
31
32 set -e
33
34-case "$1" in
35- install|upgrade)
36- dpkg-divert --add --rename --package hv-kvp-daemon-init --divert \
37- /usr/sbin/hv_kvp_daemon.hv-kvp-daemon-init \
38- /usr/sbin/hv_kvp_daemon > /dev/null
39- ;;
40-esac
41-
42 #DEBHELPER#
43
44 exit 0
45
46=== removed file 'debian/upstart'
47--- debian/upstart 2012-12-14 17:10:34 +0000
48+++ debian/upstart 1970-01-01 00:00:00 +0000
49@@ -1,18 +0,0 @@
50-# On Azure/Hyper-V systems start the hv_kvp_daemon
51-#
52-description "Hyper-V KVP Protocol Daemon"
53-author "Adam Conrad <adconrad@canonical.com>"
54-
55-start on runlevel [2345]
56-stop on runlevel [!2345]
57-console log
58-
59-pre-start script
60- if [ -e "/etc/default/hv-kvp-daemon-init" ]; then
61- . /etc/default/hv-kvp-daemon-init
62- fi
63- [ "$RUN_DAEMON" -eq 0 ] && { stop; exit 0; }
64- [ -x /usr/sbin/hv_kvp_daemon ] || { stop; exit 0; }
65-end script
66-
67-exec /usr/sbin/hv_kvp_daemon
68
69=== added file 'hv-kvp-daemon.conf'
70--- hv-kvp-daemon.conf 1970-01-01 00:00:00 +0000
71+++ hv-kvp-daemon.conf 2013-10-08 18:13:07 +0000
72@@ -0,0 +1,18 @@
73+# On Azure/Hyper-V systems start the hv_kvp_daemon
74+#
75+description "Hyper-V KVP Protocol Daemon"
76+author "Adam Conrad <adconrad@canonical.com>"
77+
78+start on runlevel [2345]
79+stop on runlevel [!2345]
80+console log
81+
82+pre-start script
83+ if [ -e "/etc/default/hv-kvp-daemon-init" ]; then
84+ . /etc/default/hv-kvp-daemon-init
85+ fi
86+ [ "$RUN_DAEMON" -eq 0 ] && { stop; exit 0; }
87+ [ -x /usr/sbin/hv_kvp_daemon ] || { stop; exit 0; }
88+end script
89+
90+exec /usr/sbin/hv_kvp_daemon
91
92=== added file 'hv-vss-daemon.conf'
93--- hv-vss-daemon.conf 1970-01-01 00:00:00 +0000
94+++ hv-vss-daemon.conf 2013-10-08 18:13:07 +0000
95@@ -0,0 +1,18 @@
96+# On Azure/Hyper-V systems start the hv_vss_daemon
97+#
98+description "Hyper-V VSS Protocol Daemon"
99+author "Ben Howard <ben.howard@canonical.com>"
100+
101+start on runlevel [2345]
102+stop on runlevel [!2345]
103+console log
104+
105+pre-start script
106+ if [ -e "/etc/default/hv-vss-daemon-init" ]; then
107+ . /etc/default/hv-vss-daemon-init
108+ fi
109+ [ "$RUN_DAEMON" -eq 0 ] && { stop; exit 0; }
110+ [ -x /usr/sbin/hv_vss_daemon ] || { stop; exit 0; }
111+end script
112+
113+exec /usr/sbin/hv_vss_daemon
114
115=== removed file 'hv_kvp_daemon'
116--- hv_kvp_daemon 2012-12-14 17:10:34 +0000
117+++ hv_kvp_daemon 1970-01-01 00:00:00 +0000
118@@ -1,25 +0,0 @@
119-#!/bin/bash
120-full_version=$(uname -r)
121-
122-# Removing flavour from version i.e. generic or server.
123-flavour_abi=${full_version#*-}
124-flavour=${flavour_abi#*-}
125-version=${full_version%-$flavour}
126-
127-# Prefer flavour-versioned hv_kvp_daemon, if it exists:
128-if [ -x /usr/sbin/hv_kvp_daemon_${full_version} ]; then
129- exec /usr/sbin/hv_kvp_daemon_${full_version} "$@"
130-elif [ -x /usr/sbin/hv_kvp_daemon_${version} ]; then
131- # Pre-3.7 linux-tools ships a broken hv_kvp_daemon, require lbm:
132- if dpkg --compare-versions ${version} lt 3.7.0 2>/dev/null; then
133- echo "You are running a pre-3.7 kernel but don't have" >&2
134- echo "linux-backports-modules-hv installed for your" >&2
135- echo "flavour, not executing hv_kvp_daemon_${version}" >&2
136- exit 2
137- fi
138- exec /usr/sbin/hv_kvp_daemon_${version} "$@"
139-else
140- echo "/usr/sbin/hv_kvp_daemon_${version} not found" >&2
141- echo "You may need to install linux-tools-${version}" >&2
142- exit 2
143-fi

Subscribers

People subscribed via source and target branches

to all changes: