Starting an MFT agent at UNIX and Linux system startup
A Managed File Transfer Agent can be configured to start at system startup on UNIX. When you log off a UNIX system your agent continues running and can receive file transfers.
When you have created and configured an agent using one of these Managed File Transfer commands; fteCreateAgent, fteCreateCDAgent, or fteCreateBridgeAgent, we can configure it to start automatically during a reboot on UNIX machines by using a script file that simply executes:
su -l mqmft_user -c mq_install_root/bin/fteStartAgent agent_nameWhere mq_install_root is the root directory of the required Managed File Transfer installation, the default is: /opt/mqm and agent_name is the name of the Managed File Transfer Agent to be started. The use of this script file varies depending on the specific UNIX operating system.
Linux
For Linux systems there are multiple ways that we can start applications during the system boot process. In general, consider following these steps:- Create a file called /etc/rc.mqmft with contents:
#!/bin/sh su -l mqmft_user"-c mq_install_root/bin/fteStartAgent agent_name"
Where mqmft_user is the user ID under which the agent process is to run. This user ID must be a member of the mqm group. - Make the file executable, for example:
chmod 755 /etc/rc.mqmft
- Next add the following line to /etc/inittab:
mqmft:5:boot:/etc/rc.mqmft
Other ways to start an agent during boot on Linux include adding the script lines to the /etc/rc.d/rc.local file, or on Linux SuSe, adding the script lines to the /etc/init.d/boot.local file. We should select the method that works best for the environment. Here is some more information on other ways to start an agent during startup on specific Linux distributions that are supported:
- SLES 10 and 11
-
For SUSE Linux Enterprise Server (SLES) 10 and 11
systems, follow these steps:
- As the system root user ID, create your own /etc/init.d/rc.rclocal file.
- Add the following lines to the rc.rclocal file:
#!/bin/sh ### BEGIN INIT INFO # Provides: rc.rclocal # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Stop: 0 1 2 6 # Description: MQMFT agent startup ### END INIT INFO su -l mqmft_user"-c mq_install_root/bin/fteStartAgent agent_name"
- Run the following commands:
chmod 755 rc.rclocal chkconfig --add rc.rclocal
Parent topic: Starting an MFT agent
Related tasks
Related information
- fteCreateAgent
- fteCreateCDAgent: create a Connect:Direct bridge agent
- fteCreateBridgeAgent (create and configure an MFT protocol bridge agent)