~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/walinuxagent.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-05-06 18:45:46 UTC
  • Revision ID: dimitri.ledkov@canonical.com-20140506184546-5toyx56xxrue0f0v
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "Windows Azure Linux agent"
 
2
author "Ben Howard <ben.howard@canonical.com>"
 
3
 
 
4
start on runlevel [2345]
 
5
stop on runlevel [!2345]
 
6
 
 
7
pre-start script
 
8
 
 
9
    [ -r /etc/default/walinuxagent ] && . /etc/default/walinuxagent
 
10
 
 
11
    if [ "$WALINUXAGENT_ENABLED" != "1" ]; then
 
12
        stop ; exit 0
 
13
    fi
 
14
 
 
15
    if [ ! -x /usr/sbin/waagent ]; then
 
16
        stop ; exit 0
 
17
    fi
 
18
 
 
19
    #Load the udf module
 
20
    modprobe -b udf
 
21
 
 
22
end script
 
23
 
 
24
exec /usr/sbin/waagent -daemon