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
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"
[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.