blob: a5f8a9573fe22c243bb3ba6e113d2afd64b360cc (
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
|
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
|