prakticky uz 0.8.4 final
[svn/Prometheus-QoS/.git] / conf / prometheus.init
CommitLineData
5def4ce3 1#!/bin/sh
ec04fc0f 2EXEFILE=`which prometheus`
3DEFAULT=/etc/default/prometheus
4
5if [ -e $DEFAULT ]; then
6 . $DEFAULT
7
8 case "$PROMETHEUS_ENABLE" in
9 [Nn]*)
10 echo "Prometheus disabled in /etc/default/prometheus !"
11 exit 0
12 ;;
13 esac
14
15else
16 echo "File /etc/default/prometheus not found !"
17 exit 0
18fi
5def4ce3 19
20case "$1" in
21 start)
22 $EXEFILE -n
23 ;;
24 stop)
25 $EXEFILE -f
26 ;;
27 kill)
28 $EXEFILE -9
29 ;;
30 restart|force-reload)
31 $0 stop
32 sleep 1
33 $0 start
34 ;;
35 *)
36 echo "Usage: $0 {start|stop|restart|force-reload|kill}" >&2
37 exit 1
38 ;;
39esac
This page took 0.339286 seconds and 4 git commands to generate.