- Go to the /usr/bin directory.
Create a commandline_start file containing the
#!/bin/sh cd <CommandLinePath> nohup sh commandline-linux.sh&Warning: The <CommandLinePath> path should be absolute.
Create a commandline_stop file containing the
#!/bin/sh (echo stopServer ; sleep 2) | telnet localhost 8002
Ensure that the two files above are executable. To do this, you
can execute the two commands below in the /usr/bin
chmod +x /usr/bin/commandline_start chmod +x /usr/bin/commandline_stop
- Paste the <CommandLinePath> /addons/scripts/talend_commandline file into the /etc/init.d directory in order to create the service related to the two executables above.
Make the file executable using:
chmod +x /etc/init.d/talend_commandline_commandline
Execute the following command:
update-rc.d talend_commandline_commandline defaults 60