Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5310

FIWARE.Question.Tech.IoT.IDAS.Centos 7: Auto restart application if it stopped

    Details

      Description

      Created question in FIWARE Q/A platform on 07-08-2015 at 15:08
      Please, ANSWER this question AT http://stackoverflow.com/questions/31878401/centos-7-auto-restart-application-if-it-stopped

      Question:
      Centos 7: Auto restart application if it stopped

      Description:
      I want to auto restart my application "Fiware IoT Agent" if it stopped, the problem is that it depends of Mongo Db Data Base and the Mosquitto broker. My OS is centOS 7

      Here is the commands that I use to launch my three application in the following order:

      *Mongo:

      /usr/local/iot/mongodb-linux-x86_64-3.0.5/bin/mongod --dbpath /usr/local/iot/mongodb-linux-x86_64-3.0.5/data/db$

      *Mosquitto broker

      /usr/sbin/mosquitto -c /etc/iot/mosquitto.conf &
      pid=$!
      echo $pid > /var/run/iot/mosquitto.pid

      Iot Agent:

      than I start my application using this command

      export LD_LIBRARY_PATH=/usr/local/iot/lib
      /usr/local/iot/bin/iotagent -i 192.168.1.11 -p 80 -v DEBUG -d /usr/local/iot/lib -c /etc/iot/config.json

      how can I start my application if it stopped known that it depends of the other two application? If for example Mongo DB stopped, I must be able to restart it and then to restart my application.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler IDAS [ 10884 ]
        HD-Chapter IoT [ 10839 ]
        mev Manuel Escriche made changes -
        Summary FIWARE.Question.Tech.Centos 7: Auto restart application if it stopped FIWARE.Question.Tech.IoT.IDAS.Centos 7: Auto restart application if it stopped
        mev Manuel Escriche made changes -
        Summary [fiware-stackoverflow] Centos 7: Auto restart application if it stopped FIWARE.Question.Tech.Centos 7: Auto restart application if it stopped
        mev Manuel Escriche made changes -
        Assignee Carlos Ralli Ucendo [ ralli ]
        mev Manuel Escriche made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            ralli Carlos Ralli Ucendo
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: