-std=c99 -Wall
[svn/Prometheus-QoS/.git] / conf / prometheus.init
index c0f8170deaf7d20e77443b26596c180dd7e46342..59a1322bd425b0a71cf4e2c479f95765148f9ece 100644 (file)
@@ -1,5 +1,21 @@
 #!/bin/sh
-EXEFILE=/usr/sbin/prometheus
+EXEFILE=`which prometheus`
+DEFAULT=/etc/default/prometheus
+
+if [ -e $DEFAULT ]; then
+    . $DEFAULT
+
+    case "$PROMETHEUS_ENABLE" in
+       [Nn]*)
+           echo "Prometheus disabled in /etc/default/prometheus !"
+           exit 0
+       ;;
+    esac
+
+else
+    echo "File /etc/default/prometheus not found !"
+    exit 0
+fi    
 
 case "$1" in
     start)
This page took 0.102476 seconds and 4 git commands to generate.