From e6667b15f28b8d07a964fb909f7238d2b07e1606 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Thu, 3 Nov 2011 17:59:48 -0700 Subject: [PATCH] bug 11729: cloud-agent depends on network status 11729: resolved fixed --- .../rhel/SYSCONFDIR/rc.d/init.d/cloud-agent.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/agent/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-agent.in b/agent/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-agent.in index e6fc5f8cca3..5ae47239c85 100644 --- a/agent/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-agent.in +++ b/agent/distro/rhel/SYSCONFDIR/rc.d/init.d/cloud-agent.in @@ -1,9 +1,17 @@ -#!/bin/bash - +#!/bin/sh +# +# cloud-agent This shell script takes care of starting and stopping cloud-agent +# # chkconfig: 35 99 10 # description: Cloud Agent -# WARNING: if this script is changed, then all other initscripts MUST BE changed to match it as well +### BEGIN INIT INFO +# Provides: cloud-agent +# Required-Start: $network +# Default-Stop: 0 1 6 +# Short-Description: Start up the cloud agent sevice +# description: Cloud Agent +### END INIT INFO . /etc/rc.d/init.d/functions