You are here

Configuring the message listeners to run automatically

The message listeners in SkyVault Analytics can be configured to start and run automatically.
  1. Create a user named listener that you will use to run the listener automatic processes:

    sudo useradd -m listener
  2. 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 $@"
  3. 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 $@"
  4. 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.