X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=conf%2Fprometheus.init;fp=conf%2Fprometheus.init;h=c0f8170deaf7d20e77443b26596c180dd7e46342;hp=0000000000000000000000000000000000000000;hb=5c7ce8ce582f05dad22cec8f41a80180f4c08e18;hpb=db3025bc20a1906bf8490a6f5848dea0ad926676 diff --git a/conf/prometheus.init b/conf/prometheus.init new file mode 100644 index 0000000..c0f8170 --- /dev/null +++ b/conf/prometheus.init @@ -0,0 +1,23 @@ +#!/bin/sh +EXEFILE=/usr/sbin/prometheus + +case "$1" in + start) + $EXEFILE -n + ;; + stop) + $EXEFILE -f + ;; + kill) + $EXEFILE -9 + ;; + restart|force-reload) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload|kill}" >&2 + exit 1 + ;; +esac