mirror of https://github.com/apache/cloudstack.git
move agent start script to upstart, to resolve the issue that agent sometimes starts before network in up state
This commit is contained in:
parent
9956bdeefc
commit
41e72a809b
|
|
@ -0,0 +1,10 @@
|
|||
description "cloudstack agent 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
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
/etc/cloud/agent/developer.properties.template
|
||||
/etc/cloud/agent/environment.properties
|
||||
/etc/cloud/agent/log4j-cloud.xml
|
||||
/etc/init.d/cloud-agent
|
||||
/etc/init/cloud-agent.conf
|
||||
/usr/bin/agent-runner
|
||||
/usr/bin/cloud-setup-agent
|
||||
/usr/lib/cloud/agent/css
|
||||
|
|
|
|||
Loading…
Reference in New Issue