Similar to Mandriva, you will need to configure the init.d file:
… JAVA_HOME=/usr/lib/jvm/java/ USERNAME=tigase USERGROUP=tigase NAME=tigase DESC="Tigase XMPP server" TIGASE_HOME=/home/tigase/tigase-server TIGASE_LIB=${TIGASE_HOME}/jars TIGASE_CONFIG=/etc/tigase.conf TIGASE_OPTIONS= TIGASE_PARAMS= PIDFILE= TIGASE_CONSOLE_LOG= …
USERNAME
- Username running Tigase, should have su permissions.USERGROUP
- The usergroup of the username.NAME
- OS name for Tigase program.DESC
- Optional description.TIGASE_HOME
- The location of your Tigase Server installation directory.TIGASE_LIB
- The location of your Tigase Jars folder, you should not need to adjust this if you setTIGASE_HOME
properly, and maintain the default file structure.TIGASE_CONFIG
- The location of your tigase.conf file relative toTIGASE_HOME
TIGASE_OPTIONS
- Legacy options for Tigase, most are now handled in init.properties or tigase.conf.TIGASE_PARAMS
- Parameters passed to command line when launching Tigase.PIDFILE
- Location of Tigase PID file if you wish to use custom directory. Default will be located in /logs or /var/temp directory.TIGASE_CONSOLE_LOG
- Location of Tigase Server console log file if you wish to use a custom directory. Default will be located in /logs directory, failing that /dev/null.
After you’ve copied the script, in order to install sysinit script you have to add it to the configuration:
/sbin/chkconfig --add tigase
Service can be enabled or disabled service with:
/sbin/chkconfig tigase <on|off|reset>