summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2015-10-09 13:23:39 -0600
committerusd-importer <ubuntu-server@lists.ubuntu.com>2015-10-11 21:39:02 +0000
commit88f6f4f0abd2e9e477504ca590d82c5728c9923b (patch)
tree27ee45ae351a26641c252157003893543be079aa /debian
parentf78b9650d0e7b008d430673a075aad95dda863be (diff)
downloadvyos-walinuxagent-88f6f4f0abd2e9e477504ca590d82c5728c9923b.tar.gz
vyos-walinuxagent-88f6f4f0abd2e9e477504ca590d82c5728c9923b.zip
Import patches-unapplied version 2.1.1-0ubuntu2 to ubuntu/wily-proposed
Imported using git-ubuntu import. Changelog parent: f78b9650d0e7b008d430673a075aad95dda863be New changelog entries: * Add support for upstart or systemd (LP: #1505001).
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog6
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules10
-rw-r--r--debian/walinuxagent.upstart25
4 files changed, 40 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 566015a..6b2796e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+walinuxagent (2.1.1-0ubuntu2) wily; urgency=medium
+
+ * Add support for upstart or systemd (LP: #1505001).
+
+ -- Ben Howard <ben.howard@ubuntu.com> Fri, 09 Oct 2015 13:23:39 -0600
+
walinuxagent (2.1.1-0ubuntu1) wily; urgency=medium
* New upstream release for Ubuntu.
diff --git a/debian/control b/debian/control
index a10e57e..0c26eb8 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,6 @@ Depends: cloud-init (>=0.7.3~bzr826-0ubuntu2),
openssh-server (>=1:5.9p1),
openssl (>=1.0),
passwd (>=4.1.4.2),
- python (>= 2.4),
util-linux (>=2.0),
${misc:Depends},
${python:Depends}
diff --git a/debian/rules b/debian/rules
index bb65f43..56db7a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,4 +12,12 @@ get-packaged-orig-source:
rm -rf orig_source
%:
- dh $@ --with python3,systemd --buildsystem=pybuild
+ dh $@ --with python3,systemd --buildsystem=pybuild
+
+
+override_dh_installinit:
+ dh_installinit --no-restart-on-upgrade --name walinuxagent
+
+override_dh_systemd_enable:
+ dh_systemd_enable --name walinuxagent waxlinuxagent.service
+
diff --git a/debian/walinuxagent.upstart b/debian/walinuxagent.upstart
new file mode 100644
index 0000000..a5f8a95
--- /dev/null
+++ b/debian/walinuxagent.upstart
@@ -0,0 +1,25 @@
+description "Windows Azure Linux agent"
+author "Ben Howard <ben.howard@canonical.com>"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+pre-start script
+
+ [ -r /etc/default/walinuxagent ] && . /etc/default/walinuxagent
+
+ if [ "$WALINUXAGENT_ENABLED" != "1" ]; then
+ stop ; exit 0
+ fi
+
+ if [ ! -x /usr/sbin/waagent ]; then
+ stop ; exit 0
+ fi
+
+ #Load the udf module
+ modprobe -b udf
+
+end script
+
+exec /usr/bin/python3 /usr/sbin/waagent -daemon
+