File: gmond.solaris.init.in

package info (click to toggle)
ganglia 3.6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 6,484 kB
  • ctags: 3,880
  • sloc: ansic: 27,874; sh: 11,052; python: 6,695; makefile: 565; perl: 366; php: 126; xml: 28
file content (27 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

GANGLIA_BASEDIR=@prefix@
GMOND=@sbindir@/gmond

test -f /etc/default/gmond && . /etc/default/gmond

[ ! -d ${GANGLIA_BASEDIR} ] && exit 1

case "$1" in

    'start')
        ${GMOND}
        ;;

    'stop')
        /usr/bin/pkill -x gmond
        ;;

    *)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;

esac
exit 0