Search

Core Application Server

Articles

Perform the following steps to stop and start the JIFFY.ai application whenever there is maintenance activity in the JIFFY.ai core server or application upgrades etc …

Stop JIFFY.ai application

Step 1

Login to JIFFY.ai core server and run the following command as a root user to stop the nginx

  • /opt/nginx/sbin/nginx -s stop
  • ps -ef | grep nginx

Image description

Stop td-agent

  • sudo /etc/init.d/td-agent stop
  • sudo /etc/init.d/td-agent status

Image description

Stop Loki Service

  • sudo service loki stop
  • sudo service loki status

Image description

Step 2

Switch the user to JIFFY.ai app Linux user and run the following commands as jiffy app user.

application stop all

Step 3

To check whether all the JIFFY.ai services have stopped

application status

Image description

Start JIFFY.ai Application

Step 1

Login to JIFFY.ai core server and run the following command as a root user to start the nginx

  • /opt/nginx/sbin/nginx
  • ps -ef | grep nginx

Image description

Step 2

Login to JIFFY.ai core server and run the following command as a root user to start the Loki and td-agent services

Start Loki Service

  • sudo service loki start
  • sudo service loki status

Image description

Start td-agent

  • sudo /etc/init.d/td-agent start
  • sudo /etc/init.d/td-agent start

Image description

Step 3

Switch the user to JIFFY.ai app Linux user and run the following commands as JIFFY.ai app user.

Start Zipkins Service

  • \$JIFFY\HOME/zipkin/conf/start_zipkin.sh
  • ps -ef | grep zipkin

Image description

Start JIFFY.ai

application start all

Image description

Step 4

To check whether all the JIFFY.ai services have started

application status

Image description

Vault Unseal during JIFFY.ai Restart

Run the following commands as JIFFY.ai app Linux user whenever there is a application restart to start the vault services.

Step 1

cd \$JIFFY_HOME/.vault.d/

Step 2

nohup vault server -config=startupconfig.hcl > vault_$(date+%Y%m%d_%H%M%S).log 2>&1 &

Step 3

vault operator unseal <unseal key 1 which was generated during the initialization>

Step 4

vault operator unseal <unseal key 2 which was generated during the initialization>

Checking Vault Running Status

ps -ef | grep vault

Image description

Both NGINX and Grafana are running from Root user.

Jiffy core services like stop/start Application must be performed from :jiffyapp-usr

Did you find what you were looking for?