Commit | Line | Data |
---|---|---|
5def4ce3 | 1 | #!/bin/sh |
2 | EXEFILE=/usr/sbin/prometheus | |
3 | ||
4 | case "$1" in | |
5 | start) | |
6 | $EXEFILE -n | |
7 | ;; | |
8 | stop) | |
9 | $EXEFILE -f | |
10 | ;; | |
11 | kill) | |
12 | $EXEFILE -9 | |
13 | ;; | |
14 | restart|force-reload) | |
15 | $0 stop | |
16 | sleep 1 | |
17 | $0 start | |
18 | ;; | |
19 | *) | |
20 | echo "Usage: $0 {start|stop|restart|force-reload|kill}" >&2 | |
21 | exit 1 | |
22 | ;; | |
23 | esac |