14 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
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
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
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
9528b4de4f remove cgroup on ubuntu, as sometimes it hang reboot 2011-05-26 19:03:09 -04:00
Edison Su
bbbb71915c fix reboot issue on ubuntu 10.04 2011-05-03 11:19:04 -04:00
Manuel Amador (Rudd-O)
05c020e1f6 Source code committed 2010-08-11 09:13:29 -07:00