1 Reply Latest reply on Jan 5, 2016 1:20 AM by Bernhard Pfeiffer

    JBOSS + Infinispan as a service

    Bernhard Pfeiffer Newbie

      Hey!

       

      Has anybody started Infinispan and JBOSS as a service?! How does it work?!

       

      jboss.service

       

      [Unit]

      Description=Jboss Application Server

      After=network.target

       

      [Service]

      Type=idle

      Environment=JAVA_HOME=/products/java-jdk JAVA=/products/java-jdk/bin/java LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=/products/infinispan/infinispan-standalone.pid RUN_CONF=""

      ExecStart=/products/infinispan/bin/standalone.sh -c clustered-cache1.xml

      TimeoutStartSec=600

      TimeoutStopSec=600

       

      [Install]

      WantedBy=multi-user.target

       

      infinispan.service

       

      [Unit]

      Description=Infinispan Memcached Server

      After=network.target

       

      [Service]

      Type=idle

      ExecStart=/products/infinispan/bin/standalone.sh -c clustered-cache1.xml

      SuccessExitStatus=0

      User=ispn

      Group=ispn

      Environment=JAVA_HOME=/products/java-jdk

      Environment=JAVA_OPTS=-D[Standalone] -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/products/infinispan/standalone/log/server.log -Dlogging.configuration=file:/products/infinispan/standalone/configuration/logging.properties -jar /products/infinispan/jboss-modules.jar -mp /products/infinispan/modules org.jboss.as.standalone -Djboss.home.dir=/products/infinispan -Djboss.server.base.dir=/products/infinispan/standalone

       

      [Install]

      WantedBy=multi-user.target

       

       

      Do you have any idea how to start?!

        • 1. Re: JBOSS + Infinispan as a service
          Bernhard Pfeiffer Newbie

          Ok, know it works:

           

          [Unit]

          Description=Infinispan Memcached Server

          After=syslog.target network.target

          Before=httpd.service

           

          [Service]

          Environment=LAUNCH_JBOSS_IN_BACKGROUND=1

          PIDFile=/products/infinispan/infinispan-standalone.pid

          User=ispn

          Group=ispn

          ExecStart=/products/infinispan/bin/standalone.sh -c clustered-cache1.xml

          TimeoutStartSec=600

          TimeoutStopSec=600

           

          [Install]

          WantedBy=multi-user.target