App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Applicationintegration
#App Connect
#AppConnect
 View Only
  • 1.  How can I create a systemctl service for ACE?

    Posted Fri January 12, 2024 06:36 PM

    I want ACE start automatically when server boots up, thank you!

    [Unit]
    Description=IBM ACE
    [Service]
    ExecStart=/path/mqsistart TEST.IN


    ------------------------------
    Juan Reforme
    ------------------------------


  • 2.  RE: How can I create a systemctl service for ACE?
    Best Answer

    Posted Fri January 12, 2024 10:58 PM
    Edited by Austin Rexroat Wed January 17, 2024 06:04 PM

    Hi Juan,

    To create a systemctl service for ACE in a simple way, you can:

    1.- Create a bash script (my_start_script.sh) where the mqsistart command is run with a user who is a member of the mqbrkrs group, something like this:

    #!/bin/bash
    #
    # IBM App Connect Enterprise
    #
    MQSI_INSTAL_PATH="/opt/ibm/mqsi/latest/server/bin"
    ACE_ADMIN_USER="adminuser"
    INTEGRATION_NODE_NAME="NODE_NAME"
    
    su - $ACE_ADMIN_USER -c "$MQSI_INSTAL_PATH/mqsistart $INTEGRATION_NODE_NAME" 

    2.- Create the unit configuration file with the ExecStart pointing to the script created previously:

    [Unit]
    Description=App Connect Enterprise
    After=network.target
     
    [Service]
    ExecStart=/path_to_scripts_directory/my_start_script.sh
    Type=oneshot
    RemainAfterExit=yes
    KillMode=none
    LimitNOFILE=20480
    LimitNPROC=4096
     
    [Install]
    WantedBy=multi-user.target

    As an improvement, change the script to accept a parameter for the start/stop signals and then use the same script to set the ExecStop/ExecStart values in the unit configuration file.

    If a single script is needed to start/stop multiple Integration Nodes, you can use template unit files to create multiple unit instances where the instance name (%i or %I) corresponds to the Integration Node name.

    I hope you find this info useful.

    Regards.



  • 3.  RE: How can I create a systemctl service for ACE?

    Posted Mon January 15, 2024 08:48 AM

    Thank you Diego, works very well as expected



    ------------------------------
    Juan Reforme
    ------------------------------



  • 4.  RE: How can I create a systemctl service for ACE?

    Posted Wed December 11, 2024 04:26 PM

    How can ACE could be persistent?
    So, if ACE stops by a failure, crash or anyhow... how can ACE could autostart?

    I did try by Systemctl service and also by MQ Service. but both did not restart ACE...

    Any ideas?

    Thank you



    ------------------------------
    juan carlo reforme
    ------------------------------