The message listeners in SkyVault Analytics can be configured to start and run
automatically.
-
Create a user named listener that you will use to run the listener
automatic processes:
sudo useradd -m listener
-
Create an init.d script; for example, in
/etc/init.d/db-events to run the event listener under the
listener user:
#!/bin/bash # chkconfig: 2345 80 20 cd opt//event-listeners /bin/su listener -c "bin/db-events.sh $@"
-
Create an init.d script; for example, in
/etc/init.d/db-activiti to run the Activiti listener under the
listener user:
#!/bin/bash # chkconfig: 2345 80 20 cd opt//event-listeners /bin/su listener -c "bin/db-activiti.sh $@"
-
Make the files executable and enable the script:
chmod +x /etc/init.d/db-events /etc/init.d/db-activiti chkconfig --add db-events chkconfig --add db-activiti
The listeners are Spring Boot applications, and can be customized to meet individual requirements. See the Spring Boot Reference Guide for more information.