Simple solution : install the container as windows service :
https://help.talend.com/display/TalendOpenStudioforESBInstallationandUpgradeGuide54EN/4.2.1%20Talend%20Runtime
Commands are very simples :
- Browse to the container/bin folder of the Talend Runtime installation directory, then launch the container by executing the trun file as a root user.
cd /path/to/talend/.../container/bin
- To install the wrapper feature, simply type:
trun@root> features:install wrapper
- To install the service, type in the following command:
trun@root> wrapper:install
Register the container as a service in automatic start mode, simply type:
trun@root> wrapper:install -s AUTO_START -n TALEND-CONTAINER -d
Talend-Container -D "Talend Container Service"
where TALEND-CONTAINER is the name of the service, Talend-Container is the display name of the service and "Talend Container Service" is the description of the service.
Warning: don't forget to stop TALEND-CONTAINER service before launch trun.bat in order to install / uninstall bundle.