26 Commits

Author SHA1 Message Date
Wido den Hollander
0d3a2a3678 agent: Send JSVC error output to syslog
Easy for debugging when the Agent won't start.
2012-09-14 23:19:46 +02:00
Edison Su
b9e8b5152c Update RPM build for 4.0
Update cloud.spec for current state of 4.0, minor waf and init script
fixes for RHEL/CENTOS/Fedora

RB: https://reviews.apache.org/r/6658/
Send-by: shadowsor@gmail.com
2012-08-16 14:48:28 -07:00
Wido den Hollander
1013a83299 agent: Remove cloud-cleanup.conf for Ubuntu
This is a very dangerous file. Although we do not package it, it would be very dangerous to do so.

If this file would be present on a HyperVisor it would cause all instances to be stopped on a libvirt restart.

There is no need for stopping all instances when libvirt is being stopped (or restarted).
2012-07-27 09:01:15 +02:00
Wido den Hollander
ae60cd7b87 init: log_process_msg doesn't work, so use log_daemon_msg for that.
We also exit earlier, we don't display that we are even trying to start.

When we detect the agent is already running we exit right away with a message.
2012-07-25 14:56:30 +02:00
Wido den Hollander
4d9dd94b53 init: LSB compliant init script
With LSB there is no need for having different init script for different distributions.

This init script should be fully LSB compliant and should work on all Linux platforms we support.

RHEL, (Open)SUSE, Debian and Ubuntu all support at least LSB 3.1
2012-07-25 14:08:41 +02:00
Wido den Hollander
fb16545510 Fix include location for the SUSE init script. 2012-07-25 00:02:42 +02:00
Wido den Hollander
5c5a4e3a10 Modify the other Agent init scripts so they use JSVC as well 2012-07-24 23:59:37 +02:00
Wido den Hollander
8dfaa76d87 Fix for the Ubuntu Agent init script.
The last commit didn't use some tokens, revert that
2012-07-24 23:56:08 +02:00
Wido den Hollander
eab3e4783e Remove cloud-daemonize and use JSVC
We now use JSVC for daemonizing our agent and usage server.
2012-07-24 19:32:39 +02:00
Wido den Hollander
42c078422c ubuntu: Fix the wait_for_network method in the agent init script.
The init script was waiting for cloudbr0 to come up, but it's not mandatory that this bridge is available.

We now wait for at least one bridge to be up before starting the cloud agent.
2012-06-21 12:20:04 +02:00
David Nalley
c15948a3ef committing Chip Childers patches fixing licensing headers
Applying to the following directories:
* api
* deamonize
* agnet
* agent-simulator
* cloud-cli
2012-06-12 12:32:58 -04:00
Robert Schweikert
980f7931f7 - support SLES and openSUSE as configuration and build targets 2012-05-27 19:31:27 -04:00
Sheng Yang
b31f383398 CS-14369: Fix Quick Installation on the single host
Notice, even after this fix, there would be 2 entries in the mshost table, after
mgmt server restarted. But it should be harmless, since only one of them is
"Up".

Some message in the log would indicate something wrong with the original mshost
entry, but still, it seems harmless.
2012-04-18 20:19:17 -07:00
frank
761069440e Bug 12194 - Ubuntu init script can fall into infinite loop
Bug 11723 - (Ubuntu Install) Management Server service won't restart

patch from community

status 11723: resolved fixed
2011-12-19 14:50:04 -08:00
Edison Su
827c71a9f0 wait for 30s, after stop agent 2011-07-08 13:33:15 -07:00
Edison Su
358fb9aba6 add wait for network before starting agent 2011-06-02 22:38:13 -04:00
Edison Su
47d52ad937 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.
2011-06-02 22:38:13 -04:00
Edison Su
768d990446 Try upstart init script in the next round 2011-05-31 16:38:09 -04:00
Edison Su
2e76571004 Revert "move agent start script to upstart, to resolve the issue that agent sometimes starts before network in up state"
This reverts commit 1a2ba7eeee69f9b0a789a787383cf429e9d4c11c.
2011-05-27 12:53:53 -04:00
Edison Su
41e72a809b move agent start script to upstart, to resolve the issue that agent sometimes starts before network in up state 2011-05-27 12:01:02 -04:00
Edison Su
9528b4de4f remove cgroup on ubuntu, as sometimes it hang reboot 2011-05-26 19:03:09 -04:00
Edison Su
f5d1154743 Revert "augeas <=0.7.4"
This reverts commit 61fb86de5db1378515cfd479240b3a9bde2ee7c0.
2011-05-04 13:52:25 -04:00
Edison Su
8b884a8400 augeas <=0.7.4 2011-05-04 13:47:50 -04:00
Edison Su
bbbb71915c fix reboot issue on ubuntu 10.04 2011-05-03 11:19:04 -04:00
Edison Su
c12e96dcc3 add missing files 2011-01-06 12:25:50 -05:00
Manuel Amador (Rudd-O)
05c020e1f6 Source code committed 2010-08-11 09:13:29 -07:00