Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
#!/bin/bash
### BEGIN INIT INFO
# Provides: talend-runtime
# Required-Start: $local_fs $remote_fs $network $time
# Required-Stop: $local_fs $remote_fs $network $time
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Talend Runtime
### END INIT INFO
RUN_AS_USER=talend
case "$1" in
start)
echo $"Starting Talend Job Server"
/bin/su - $RUN_AS_USER -c '/opt/talend/6.1.1/runtime/server/bin/start &'
;;
stop)
echo $"Stopping Talend Job Server"
/bin/su - $RUN_AS_USER -c '/opt/talend/6.1.1/runtime/server/bin/stop &'
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
;;
esac
exit $RETVAL
sudo chown -R talend:talend /your/path/to/karaf