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 $? |
References
Configuring and starting the Denodo Monitor
Launching the Denodo Monitor with Solution Manager