Sha256: a7dabe5d856e9978e7bf3ddeb969b15ce6b0d432297eda7360b790b818b585f3
Contents?: true
Size: 1.11 KB
Versions: 6
Compression:
Stored size: 1.11 KB
Contents
#! /bin/sh ### BEGIN INIT INFO # Provides: instrument_server # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start instrument_server at boot to provide system metrics # Description: Report system level metrics to the Instrumental service (https://instrumentalapp.com/) ### END INIT INFO set -e DIRECTORY="/opt/instrumental-tools/" CONFIG_FILE="/etc/instrumental.yml" TMPDIR=$DIRECTORY PID="${DIRECTORY}instrument_server.pid" LOG="${DIRECTORY}instrument_server.log" SCRIPT_LOCATION="${DIRECTORY}.instrumental_scripts" USER_TO_RUN_AS="nobody" ARGS="-f ${CONFIG_FILE} -p ${PID} -l ${LOG} -s ${SCRIPT_LOCATION} -u ${USER_TO_RUN_AS} -t ${TMPDIR}" PROCESS="${DIRECTORY}instrument_server ${ARGS}" case "$1" in start) $PROCESS start ;; stop) $PROCESS stop ;; restart) $PROCESS restart ;; status) $PROCESS status ;; force-reload) $PROCESS stop && $PROCESS clean && $PROCESS start ;; *) echo "Usage: /etc/init.d/instrumental-tools {start|stop|restart|status}" exit 1 ;; esac exit 0
Version data entries
6 entries across 3 versions & 1 rubygems