Agent Startup by Using the init.d Script
(1) Creation of the startup script
Execute 'generate_init.d_script.sh', which is included with Agent.
# sh {Agent installation directory}/bin/generate_init.d_script.sh
The scripts named 'sender_agent' and 'receiver_agent' are created.
(2) Placement of the startup script
Place the created script in '/etc/init.d'.
(3) Registration of the service
Register the service by using the following command:
# chkconfig --add sender_agent # chkconfig --add receiver_agent
(4) Startup
Start Agent by using the following command:
# /etc/init.d/sender_agent start # /etc/init.d/receiver_agent start
(5) Verification of the startup
Verify that Agent has started by using the following command:
# /etc/init.d/sender_agent status status_sender is called. sender agent is ready to transfer. [002] # /etc/init.d/receiver_agent status status_receiver is called. receiver agent is ready to transfer. [002]
The following command as previously mentioned is also available to verify that Agent has started. The below is an example of Agent on the receiving side.
# ./agentctl -r status status_receiver is called. receiver agent is ready to transfer. [002]