Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1391

Use script name for file related to Wildfly to allow multiple instances easily

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Optional
    • 3.0.0.Alpha1
    • 2.0.1.Final
    • Scripts
    • None

    Description

      With the current provided init.d script, one cannot start several instances of Wildfly. Indeed, the script will associate the same files (pid file, log) to both instance. If we rename those files using, for instance, the name of the script we can easily use the exact same script for all local instances:

      # ln -s ..../init.d/wildfly-initd-redhat.sh /etc/init.d/wildfly-1 
      # ln -s ..../init.d/wildfly-initd-redhat.sh /etc/init.d/wildfly-2 
      

      And to take the example of the PIDFILE:

      JBOSS_PIDFILE=/var/run/$(basename $0)/jboss-as-domain.pid 
      

      Each links will then look up and creates its own separate file:

      /var/run/wildfly-1/jboss-as-domain.pid
      /var/run/wildfly-2/jboss-as-domain.pid

      Attachments

        Issue Links

          Activity

            People

              rpelisse@redhat.com Romain Pelisse
              rpelisse@redhat.com Romain Pelisse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified