As with other distributions you should copy init.d script to the correct location. Afterwards it should be edited and correct values for variables need to be set:
… USERNAME=tigase USERGROUP=tigase NAME=tigase DESC="Tigase XMPP server" TIGASE_HOME=/usr/share/tigase TIGASE_CONFIG=/etc/tigase/tigase.config 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_CONFIG
- The location of your tigase-server.xml file relative (old configuration format)TIGASE_OPTIONS
- command line arguments passed to Tigase server (which may include path toinit.properies
(if correcttigase.conf
configuration will be found then it will translate toTIGASE_OPTIONS=" --property-file etc/config.tdsl "
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/var/run/tigase/tigase.pid
or under (in this case relative to tigase home directory)logs/tigase.pid
.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.
Afterwards we need to install service in the system with following command:
update-rc.d tigase defaults