| Run JBoss as Service HowTo |
|
|
|
| Written by F.Marchioni | |||||
| Tuesday, 15 December 2009 15:25 | |||||
|
A short tutorial for JBoss administrator which illustrates how to start JBoss AS as Service both in Windows environment and in Unix-Linux environment.
Windows users should use the service,bat shell command which is located into the JBOSS_HOME/bin folder. The service.bat commands needs at least one parameter to run:
C:\jboss-5.0.0.GA\bin>serviceUsage: service install|uninstall|start|stop|restart|signal In order to install JBoss AS as Windows service launch: Now JBoss AS should me enlisted in the Windows Service List, which can be found in the control panel.
Now you can use both the Windows service applet or the service.bat command to start the service. Example:
Starting JBoss AS service: Linux applications use System V Init scripts to run an application when the machine boots.Basically, the scripts which start a service are placed in: /etc/rc.d/init.d/ (other distributions: /etc/init.d/) The same scripts need to be linked as: /etc/rc.(x)/ (Prefixed with S for start and K for stop) We suggest you reading a good tutorial about Linux Init scripts if you are new to this: http://www.linux.com/news/enterprise/systems-management/8116-an-introduction-to-services-runlevels-and-rcd-scripts JBoss AS distribution includes a few shell commands which are located in the JBOSS_HOME/bin folder.
jboss_init_hpux.sh jboss_init_redhat.sh jboss_init_suse.sh Copy the appropriate file for your distribution into the /etc/rc.d/init.d folder cp jboss_init_redhat.sh /etc/rc.d/init.d/jboss
ln -s /etc/rc.d/init.d/jboss /etc/rc3.d/S84jboss ln -s /etc/rc.d/init.d/jboss /etc/rc6.d/K15jboss
mkdir $JBOSS_HOME/log
JBoss.org Search
Custom Search
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
|||||
| Last Updated ( Tuesday, 15 December 2009 17:04 ) |






