Never get the upstart script stable enough

fall back to systemV init script
Revert "Try upstart init script in the next round"

This reverts commit da56f8e92e74b2e06df66da03e1b77b3a13cb97d.
This commit is contained in:
Edison Su 2011-06-02 21:31:04 -04:00
parent 3cddd72c9b
commit 47d52ad937
3 changed files with 6 additions and 12 deletions

View File

@ -1,10 +0,0 @@
description "CloudStack Computing Node Daemon"
author "Edison Su<edison@cloud.com>"
start on (net-device-up IFACE=cloudbr0)
stop on runlevel [!2345]
expect fork
exec /usr/bin/cloud-daemonize -n "cloud-agent" -p "/var/run/cloud-agent.pid" -l "/var/log/cloud/agent/agent.log" /usr/bin/agent-runner

View File

@ -2,7 +2,7 @@
/etc/cloud/agent/developer.properties.template
/etc/cloud/agent/environment.properties
/etc/cloud/agent/log4j-cloud.xml
/etc/init/cloud-agent.conf
/etc/init.d/cloud-agent
/usr/bin/agent-runner
/usr/bin/cloud-setup-agent
/usr/lib/cloud/agent/css

View File

@ -8,7 +8,11 @@ case "$1" in
chmod 0770 $i
done
if [ "$2" = "" ] ; then # no recently configured version, this is a first install
/usr/sbin/update-rc.d cloud-agent defaults || true
fi
;;
esac
#DEBHELPER#
#DEBHELPER#