summaryrefslogtreecommitdiff
path: root/distro/redhat
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2014-02-14 11:55:14 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2014-02-17 18:03:31 +0000
commit3e535e3f3b9b1e44ed9e2394821a4f4799c8245b (patch)
tree83c66978db367943a2f8fe17b6921ad894c40b1f /distro/redhat
parentb10340ae4082fc4904a41f90d4b4e6d2179ef2ff (diff)
downloadvyos-walinuxagent-3e535e3f3b9b1e44ed9e2394821a4f4799c8245b.tar.gz
vyos-walinuxagent-3e535e3f3b9b1e44ed9e2394821a4f4799c8245b.zip
Import patches-unapplied version 2.0.3-0ubuntu1 to ubuntu/trusty-proposed
Imported using git-ubuntu import. Changelog parent: b10340ae4082fc4904a41f90d4b4e6d2179ef2ff New changelog entries: * Update to latest upstream version 2.0.3 (LP: #1249052). - use python-setuptools to do installation, dropping the {pre,post}insts - dropped the walinuxagent-datasaver packages as no longer needed. - use packaged default configuration file by default. * Include patches from 1.3.x series - debian/patches/disable_provisioning.patch: disable provisioning features infavor of WALinuxAgent cloud-init support. - debian/patches/disable-udev-rules.patch: disable UDEV rule mangling * Include default Cloud-init configuration - configures Cloud-init to use the default Azure Datasource
Diffstat (limited to 'distro/redhat')
-rw-r--r--distro/redhat/waagent.sysV54
1 files changed, 54 insertions, 0 deletions
diff --git a/distro/redhat/waagent.sysV b/distro/redhat/waagent.sysV
new file mode 100644
index 0000000..d1278e7
--- /dev/null
+++ b/distro/redhat/waagent.sysV
@@ -0,0 +1,54 @@
+#!/bin/bash
+#
+# Init file for WindowsAzureLinuxAgent.
+#
+# chkconfig: 2345 60 80
+# description: WindowsAzureLinuxAgent
+#
+
+# source function library
+. /etc/rc.d/init.d/functions
+
+RETVAL=0
+FriendlyName="WindowsAzureLinuxAgent"
+WAZD_BIN=/usr/sbin/waagent
+
+start()
+{
+ echo -n $"Starting $FriendlyName: "
+ $WAZD_BIN -daemon &
+}
+
+stop()
+{
+ echo -n $"Stopping $FriendlyName: "
+ killproc -p /var/run/waagent.pid $WAZD_BIN
+ RETVAL=$?
+ echo
+ return $RETVAL
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ reload)
+ ;;
+ report)
+ ;;
+ status)
+ status $WAZD_BIN
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart|status}"
+ RETVAL=1
+esac
+exit $RETVAL