-
1. Re: Jboss 7 service under linux (ubuntu)
nickarls Dec 7, 2012 1:28 AM (in response to ohmygod)You don't really *need* the native connectors for having the AS run as a service under Linux, the scripts you need are under bin/init.d.
-
2. Re: Jboss 7 service under linux (ubuntu)
ohmygod Dec 7, 2012 3:43 AM (in response to nickarls)Hi Nicklas,
Do you know if there is any document or step to show how to use the bin/init.d to create jboss service under Linux?
-
3. Re: Jboss 7 service under linux (ubuntu)
nickarls Dec 7, 2012 4:02 AM (in response to ohmygod)http://www.davidghedini.com/pg/entry/install_jboss_7_on_centos
For a system with java set up you can probably get away with doing a
ln -s /opt/jboss-as-7.1.1/bin/init.d/jboss-as-standalone.sh jboss
chmod u+x /opt/jboss-as-7.1.1/bin/init.d/jboss-as-standalone.sh
/etc/init.d/jboss start
and then
while(!working) {
tune config
}
-
4. Re: Jboss 7 service under linux (ubuntu)
ohmygod Dec 9, 2012 11:12 PM (in response to nickarls)I used that jboss-as-standalone.sh, but there is one line in it
# Source function library.
. /etc/init.d/functions
which indicates to call functions library, but the problem is on my ubuntu server, there is no such file etc/init.d/functions actually.
Any idea?
-
5. Re: Jboss 7 service under linux (ubuntu)
sfcoy Dec 10, 2012 12:51 AM (in response to ohmygod)The init.d scripts provided with a JBoss distribution are (not surprisingly) written for Red Hat style linux distributions. Personally, I use Fedora Core or Centos for development servers.
The Ubuntu distribution is fundamentally different in many ways and I suspect that you may need to work out what it's init.d style mechanism is and build your own start/stop scripts for it.
-
6. Re: Jboss 7 service under linux (ubuntu)
nickarls Dec 10, 2012 1:49 AM (in response to ohmygod)There are some other tutorials at
http://www.youtube.com/watch?v=VzxLTGW2gqE
as I understood, the script itself mostly works, it the startup procedure that differs among distribution types...