Fedora RPM guide is a great resource to understand the process of creating RPM's (detailed and fairly easy to understand, check especially chapters 8 and 9). Check also other RPM documentation listed here.
When I manage some spare time, I'll try to help you to write a spec file for JBoss ESB.
i have tried to write a spec file for jbossesb integrated in jbossas 5.1 like the spec file of Gatein. Then i have also created a jbossesb.init (for the Daemon) file and Finally the RPM Package. But by trying to install this package local in my machine (fedora 13), i still become the error that the Daemon of jbossesb is crasched (not successfully started). I have also tried to do the same with Gatein but the local installation always fails.
Can you please help me?
I give you the
- spec file,
- the jbossesb.init.d
- the original gz.tar file of jbossesb.
- The generated RPM
I will appreciate any help.
If you ESB is crashed on start this is a good sign - you're getting closer!
First of all, log in to your instance and try to run it manually. Check every JBoss log – there is the answer for your problem. JAVA_OPTS setting too high maybe? Wrong directories?
Change your init script to fix this problem and then make same changes in your init script used for building the appliance and rebuild it.