Skip to content

Commit 41e72a8

Browse files
committed
move agent start script to upstart, to resolve the issue that agent sometimes starts before network in up state
1 parent 9956bde commit 41e72a8

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
description "cloudstack agent daemon"
2+
author "Edison Su<edison@cloud.com>"
3+
4+
start on (net-device-up IFACE=cloudbr0)
5+
stop on runlevel [!2345]
6+
7+
expect fork
8+
9+
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
10+

debian/cloud-agent.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/etc/cloud/agent/developer.properties.template
33
/etc/cloud/agent/environment.properties
44
/etc/cloud/agent/log4j-cloud.xml
5-
/etc/init.d/cloud-agent
5+
/etc/init/cloud-agent.conf
66
/usr/bin/agent-runner
77
/usr/bin/cloud-setup-agent
88
/usr/lib/cloud/agent/css

0 commit comments

Comments
 (0)