2.3. Installing and Starting the Service
Overview
The operating system determines the exact steps using to complete the installation of Red Hat JBoss Fuse as a service. The wrapper:install command provides basic instructions for your operating system.
Windows
To install the service run
InstallDir\bin\ServiceName-service.bat install
. If you used the default start setting, the service will start when Windows is launched. If you specified DEMAND_START
, you will need to start the service manually.
To start the service manually run
net start "ServiceName"
. You can also use the Windows service UI.
To manually stop the service run
net stop "ServiceName"
You can also use the Windows service UI.
You remove the installed the service by running
InstallDir\bin\ServiceName-service.bat remove
.
Redhat Linux
To install the service and configure it to start when the machine boots, run the following commands:
#
ln -s InstallDir/bin/ServiceName-service /etc/init.d/
#
chkconfig ServiceName-service --add
#
chkconfig ServiceName-service on
To start the service manually run
service ServiceName-service start
.
To manually stop the service run
service ServiceName-service stop
.
You remove the installed the service by running the following commands:
#
service ServiceName-service stop
#
chkconfig ServiceName-service --del
#
rm /etc/init.d/ServiceName-service
Ubuntu Linux
To install the service and configure it to start when the machine boots, run the following commands:
#
ln -s InstallDir/bin/ServiceName-service /etc/init.d/
#
update-rc.d ServiceName-service defaults
To start the service manually run
/etc/init.d/ServiceName-service start
.
To manually stop the service run
/etc/init.d/ServiceName-service stop
.
You remove the installed the service by running the following commands:
#
/etc/init.d/ServiceName-service stop
#
rm /etc/init.d/ServiceName-service