|Create a symbolic link to the AFX startup script located in $AFX_HOME/bin.|
- Connect to the AFX Server as the root user.
- Create a symbolic link to the AFX startup script located in $AFX_HOME/bin.
ln -s $AFX_HOME/bin/afx_server /etc/init.d/afx_server
- Make sure the link was created properly:
ls -l /etc/init.d/afx_server
$ ls -l /etc/init.d/afx_server
lrwxrwxrwx 1 root root 31 Dec 30 15:26 /etc/init.d/afx_server -> /home/oracle/AFX/bin/afx_server
- Switch to the afx user and verify that the AFX commands now work. Here is a sample session using the afx status command. Note that in this example the afx user is oracle.
$ afx status
AFX Server Status:Setting MULE_HOME to /home/oracle/AFX/esb...
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /home/oracle/.activemqrc)
INFO: Invoke the following command to create a configuration file
/home/oracle/AFX/activemq/bin/activemq setup [ /etc/default/activemq | /home/oracle/.activemqrc ]
INFO: Using java '/etc/alternatives/java_sdk_1.7.0/bin/java'
ActiveMQ not running
MULE_HOME is set to /home/oracle/AFX/esb
Mule Enterprise Edition is not running.
MMC Console is not running.
- To configure AFX services to start and stop automatically whenever the system reboots, add the service and enable it using the chkconfig utility:
- Add the service:
chkconfig --add afx_server
- Enable the service run level:
chkconfig afx_server on
- Verify the service has been added:
chkconfig --list afx_server