Steps to run tibtunnel as a service on Linux using supervisor

Steps to run tibtunnel as a service on Linux using supervisor

book

Article ID: KB0073764

calendar_today

Updated On:

Products Versions
TIBCO Cloud -

Description

Steps to be done before setting up tunnel as a service are:

  • Download tibtunnel for your linux machine. 
  • Have an existing access key available to configure tibtunnel. If not, create a new one.
[Note: Please find documentation links in reference section]
 

Resolution

Here are the steps to set up Supervisor and run tibtunnel as a service:

Step 1: Configure profile for tibtunnel as root user
sudo ./tibtunnel configure --profile <ProfileName> --accessKey <<TIBCO AccessKey>>

Step 2: Download supervisor on Linux machine
sudo apt install supervisor

User-added image

Step 3: Configure supervisord.conf in etc/supervisor/supervisord.conf. To monitor tibtunnel process, add the following section to "/etc/supervisor/supervisord.conf".

"[program:tibtunnel]
command=/PATH_TO_TIB_TUNNEL/tibtunnel connect -p PROFILENAME -s 443:jira.tibco.com:443 APP_URL
autostart=true
startretries=5
autorestart=true"

User-added image

[Note: Make sure to replace appropriate values for "PATH_TO_TIB_TUNNEL", "PROFILENAME", and "app_URL"]

Step 4: Save the changes and run supervisor to check if tibtunnel is running.
sudo run supervisord -n -c /etc/supervisor/supervisord.conf

[Note: Tunnel and supervisor logs can be found in /etc/var/logs/supervisor folder]

Step 5: Restart machine to see if tunnel runs as service upon start.
 

Issue/Introduction

This article contains the steps to be followed to run tibtunnel as a service in Linux using supervisor

Additional Information

Downloading tibtunnel : https://account.cloud.tibco.com/cloud/docs/proxy-agent/creating_access_key.html
Creating access key: https://account.cloud.tibco.com/cloud/docs/proxy-agent/download_proxy_agent.html
Installing tibtunnel: https://integration.cloud.tibco.com/docs/index.html#tci/using/hybrid-agent/installing-configuring-running-agent.html
Using tibtunnel: https://integration.cloud.tibco.com/docs/index.html#tci/using/hybrid-agent/hybrid-proxy/using-tunneling.html