diff options
Diffstat (limited to 'init/ubuntu/walinuxagent.conf')
-rw-r--r-- | init/ubuntu/walinuxagent.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/init/ubuntu/walinuxagent.conf b/init/ubuntu/walinuxagent.conf new file mode 100644 index 0000000..2ce6608 --- /dev/null +++ b/init/ubuntu/walinuxagent.conf @@ -0,0 +1,26 @@ +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/sbin/waagent -daemon + +respawn |