14 Commits

Author SHA1 Message Date
Vincent Bernat
2401eb927b CLOUDSTACK-7633: fix "Provides" in most LSB headers
In init.d scripts, the LSB header may specify what kind of service is
provided by an init script. If spaces are used, this means the init
script is providing several boot facilities. We fix that by using an
hyphen.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-25 16:56:53 +02:00
Rajani Karuturi
fa1156092e CLOUDSTACK-6926 setting java_home from installed java
changed the order of preference to check for java first.

Usage server rpm installs JRE 1.7. In the case where JDK 1.6 is already
installed, java version would be 1.7 but, javac would be 1.6
If javac is given preference, usage server fails to start in this case.
2014-09-12 15:17:10 +05:30
rayeesn
90287cc60a CLOUDSTACK-6360: adding mysql-connector to class path and it will be loaded while starting cloudstack-usage 2014-09-10 14:40:56 -07:00
Leo Simons
0ec36e128b Fix CLOUDSTACK-7476: always pass along $JAVA_HOME
On a secured environment (selinux w/ env_reset enabled in sudoers), the
runuser command that is invoked by the daemon() function does not pass
along environment variables, so $JAVA_HOME is empty, and JSVC falls
back to its default behavior, which may not find java or may not find
the intended java.

This fix simply passes $JAVA_HOME explicitly using the -home argument to
JSVC.

Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2014-09-05 16:39:34 +05:30
Rajani Karuturi
c468228fe8 CLOUDSTACK-6926: removed hard coded jdk dirs and setting java home using readlink and dirname 2014-06-25 17:23:42 +05:30
rayeesn
d0c249bc9e updating cloud-usage.rc file to start cloudstack-usage server with java 1.7 2014-05-27 14:04:38 -07:00
Hugo Trippaers
574e716352 CLOUDSTACK-2033 Fix usage server startup and logging
Properly implement the Daemon interface

Initialize logging when the usage server is started as a daemon

Fix a few minor startup and packaging items.
2013-04-16 10:52:49 +02:00
Hugo Trippaers
0fa3ed9b74 Separate stderr and stdout output from jsvc 2013-02-26 18:01:07 +01:00
Hugo Trippaers
d92725e846 Summary: Packaging fixes for usage
Make the usage server look in the /etc/cloudstack/usage server for the db.properties

Add the /etc/cloudstack/usage to the package as an empty dir
2013-02-26 16:40:35 +01:00
Hugo Trippaers
bc4abcf14d Capture stderr and stdout of the jsvc run services (agent and usage) 2013-02-22 14:13:57 +01:00
Hugo Trippaers
9b5774363d Revert "Make sure initial log messages go somewhere for agent and usage"
The dreaded wrong-tree-active-syndrome

This reverts commit 9589f9fe5f401df90f7b356c9186d012c8f887ab.
2013-02-21 11:22:50 -08:00
Hugo Trippaers
1dd40518a4 Make sure initial log messages go somewhere for agent and usage 2013-02-15 15:49:51 +01:00
Hugo Trippaers
7ce03b4f8e Summary: Fixup usage server for packaging
Make the start method work again with jsvc

Move the usageApplicationContext to resources and add resources to the pom.xml

Remove the old components file

Add mysql-connector as a runtime dependency

Rename the usage package and the files to cloudstack

Change paths to the new proposed locations
2013-02-03 17:49:18 +01:00
Hugo Trippaers
ca7b8b0a87 Package the usage server 2013-01-29 16:23:14 +01:00