Installing Talend Log Server as
a service on RedHat/CentOS 6 and Ubuntu Systems
Procedure
Create a script from which Talend Log Server can be run in the
/etc/init.d/tlogserver directory, such as the
following:
#!/bin/sh
#
# tlogserver: this script starts and stops the monolithic jar
#
# chkconfig: - 85 15
# description: logstash is an open source log management system.
# processname: tlogstash
# config: %%%LOGSERV_CONFIG%%%
# binary: %%%LOGSERV_JAR%%%
prog=tlogserver
PATH=%%%INSTALLDIR%%%/logserv:/sbin:/bin:/usr/sbin:/usr/bin
NAME=tlogserver
test -x $DAEMON || exit 0
set -e
start() {
echo -n $"Starting $prog: "
%%%INSTALLDIR%%%/logserv/start_logserver.sh
}
stop() {
echo -n $"Stopping $prog: "
%%%INSTALLDIR%%%/logserv/stop_logserver.sh
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
Ensure that the file above is executable. To do this, you can
execute the following command in the /etc/init.d/tlogserver
directory:
# chmod +x
/etc/init.d/tlogserver
Execute the following command to activate the startup
script:
# update-rc.d tlogserver defaults
60
Results
Filebeat is automatically installed and started as a service, only if you selected
the option to use LogServer when installing a Talend
module that provides this option, such as Talend Administration Center or
Talend Data Stewardship. The following image is an example of this option:
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!