Auto-starting Agent in Linux and Solaris 9 environments

Top  Previous  Next

For Linux and Solaris 9 environments you may have the MFT Gateway Agent Service start up automatically during system startup by creating a service configuration file for MFT Gateway Agent Service and placing it in your /etc/init.d directory.  This same configuration file will be used for gracefully stopping the MFT Gateway Agent Service when shutting down the system.  A sample service configuration file, agent, has been placed in the init.d directory of your MFT Gateway Agent installation.

 

Installing the service configuration file

 

1.As root user, copy the agent sample service configuration file to your /etc/init.d directory.

 

2.Grant execute permissions to this file using the command chmod 755 gateway

 

3.Using a text editor, change the value of the INSTALL_DIR variable to the absolute path of your MFT Gateway Agent installation directory.  The default value for the INSTALL_DIR variable is /opt/MFT_Gateway_Agent which is consistent with Linux RPM installations.  Your installation directory may vary.

 

4.Set this script to be executed automatically upon system startup using the following command(s):

 

 

Linux

 

/sbin/chkconfig --add agent

 

Solaris 9

 

ln /etc/init.d/agent /etc/rc3.d/Sxxagent

 

ln /etc/init.d/agent /etc/rc0.d/Kxxagent

 

 

Note

 

If you are running under Ubuntu environment then the chkconfig command is not available.  Instead you must run the following command as root user from /etc/init.d directory:

 

update-rc.d agent defaults

 

 

Starting the service

 

From the /etc/init.d directory and as root user run the command ./agent start to start the service.

 

 

Stopping the service

 

From the /etc/init.d directory and as root user run the command ./agent stop to stop the service.

 

 

Restarting the service

 

From the /etc/init.d directory and as root user run the command ./agent restart to restart the service.





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2023 Redwood Software, Inc.