Denodo Monitor as a Linux Service

Applies to: Denodo 8.0 , Denodo 7.0 , Denodo 6.0
Last modified on: 05 Jun 2020
Tags: Denodo Monitor

Download document

You can translate the document:

Goal

This document describes how to register the Denodo Monitor as a Linux Service.

Content

The Denodo Monitor tool of the Denodo Platform can be configured to be automatically started as part of the startup process of an operating system.

In the case of Linux systems, it will be necessary to create a shell script and install this script into the /etc/init.d directory. Once the script is created it will be invoked automatically by the operating system using the start/stop/restart standard arguments.

You can see below an example of this startup script (denodo_monitord) that you can use to automate the initialization of the Denodo Monitor.

In this example we assume that the installation directory of the Denodo Platform is /opt/denodo(DENODO_HOME) and that the Denodo Monitor is located under the default installation folder (DENODO_HOME/tools/monitor/denodo-monitor/bin/). These values can be modified as needed.

denodo_monitord

#!/bin/sh

#

# /etc/init.d/denodo_monitord

# Subsystem file for "denodo_monitor" server

DENODO_HOME="/opt/denodo"

start(){

cd $DENODO_HOME/tools/monitor/denodo-monitor/bin/

./denodomonitor_startup.sh&

}

stop(){

PID=`ps -ef | grep com.denodo.monitor | grep -v grep | awk '{print $2}'`

echo $PID

sudo kill -9 $PID

}

restart(){

   stop

   start

}

reload() {

   restart

}

case "$1" in

   start)

       start

       ;;

   stop)

       stop

       ;;

   restart)

       restart

       ;;  

*)

       echo $"Usage: $0 {start|stop|restart}"

       exit 2

esac

exit $?

Questions

Ask a question
You must sign in to ask a question. If you do not have an account, you can register here

Featured content

DENODO TRAINING

Ready for more? Great! We offer a comprehensive set of training courses, taught by our technical instructors in small, private groups for getting a full, in-depth guided training in the usage of the Denodo Platform. Check out our training courses.

Training