18 Commits

Author SHA1 Message Date
Marcus Sorensen
a4d3ec476f CLOUDSTACK-6220: Take 2, Fix cloudstack init scripts so that they
don't use fully qualified path as script name. Fix for
    commit 9dd57c22b02afcddb1d6c8ddc3e1b578961454e3
2014-03-10 16:11:52 -06:00
Marcus Sorensen
d033ca486b CLOUDSTACK-6220: Fix cloudstack init scripts so that they
don't use fully qualified path as script name. Fix for
commit 9dd57c22b02afcddb1d6c8ddc3e1b578961454e3
2014-03-10 15:34:55 -06:00
John Kinsella
9dd57c22b0 CLOUDSTACK-6129: removing hard-coded script names
Replacing whatami with $0 which is how UNIX shell scripts should get the
script's name.

BUG-ID: CLOUDSTACK-6129
Bugfix-for:
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1392660036 -0800
2014-02-17 10:00:36 -08:00
Wido den Hollander
e6fd794ca0 packaging: Do not depend on JNA and don't include it in the classpath
It's now packaged with maven due to libvirt 0.5.1 and will be included
in the classpath automatically.
2013-09-29 12:22:46 +02:00
Hugo Trippaers
265cf42ffe packaging: sync master and 4.1 for rpm packaging 2013-04-05 21:18:16 +02:00
Wido den Hollander
9e02ed139f packaging: Include the Agent plugins dir in the classpath
For both the RPM and DEB packages are new directory for plugins
for the agent is created.

All JAR files in that directory will be added to the classpath
on boot of the agent.
2013-03-06 19:26:18 +01:00
Wido den Hollander
4d7dced2f8 rpm: Place the KVM Agent JAR in the lib directory
All JAR files should go into the lib directory, that also
makes building the classpath easier.
2013-03-05 16:10:38 +01:00
Wido den Hollander
72c4d6a873 packaging: Sync RPM and DEB init scripts Agent
The RPM init script was lacking some things, it is synced
now with the DEB init script.

Both prefer Java 7 over Java 6 and add the correct JAR files to the
classpath.
2013-03-05 16:10:38 +01:00
Wido den Hollander
e14e057f3d packaging: Use the JNA version from the distribution
Libvirt-java 0.4.9 works just fine with JNA 3.2.4 which is in
all distributions.

Future libvirt version require at least JNA 3.5.1 due to new methods
and memory management, but that is not our concern now.

By depending on the JNA in the distribution and adding it to the classpath
we can work just fine.
2013-03-05 16:10:38 +01:00
Wido den Hollander
ee695ba2c8 debian / rpm: When building the classpath in the init script strip last semi-column
Remove the trailing : so we don't get them double in the classpath
2013-03-01 16:47:05 +01:00
Hugo Trippaers
6223520efd CLOUDSTACK-1469 Commit 2f135be1 introduced jna as a dependency for hypervisor kvm, so make sure the version from the operating system is not used anymore 2013-03-01 14:54:11 +01:00
Hugo Trippaers
0fa3ed9b74 Separate stderr and stdout output from jsvc 2013-02-26 18:01:07 +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
5bf6771e60 Summary: packaging updates
Renamed a whole bunch of stuff from cloud to cloudstack

Fix startup of cloudstack-agent
2013-02-04 21:35:24 +01:00
Hugo Trippaers
cc9110d7a1 We need these system libs to be present 2013-01-29 16:23:13 +01:00
Hugo Trippaers
91673b10b8 Summary: Get started with packaging cloud-agent
Modify the spec file to package the agent files and the scripts

Some changes to the poms to put the java dependencies in the right place.

Move the agent script to the dedicated os dir in packaging.
2013-01-07 22:18:01 +01:00