summaryrefslogtreecommitdiff
path: root/init/ubuntu/walinuxagent.conf
blob: 2ce6608526fd9d98f523177d4ea9306952a16e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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