diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2015-10-09 13:23:39 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2015-10-11 21:39:02 +0000 |
commit | 88f6f4f0abd2e9e477504ca590d82c5728c9923b (patch) | |
tree | 27ee45ae351a26641c252157003893543be079aa /debian/walinuxagent.upstart | |
parent | f78b9650d0e7b008d430673a075aad95dda863be (diff) | |
download | vyos-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/walinuxagent.upstart')
-rw-r--r-- | debian/walinuxagent.upstart | 25 |
1 files changed, 25 insertions, 0 deletions
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 + |