Last change
on this file since 11bb814 was 2167cfe, checked in by William Harrington <kb0iic@…>, 11 years ago |
bootscripts are the scripts used for the sysvinit book.
|
-
Property mode
set to
100644
|
File size:
724 bytes
|
Rev | Line | |
---|
[2167cfe] | 1 | #!/bin/bash
|
---|
| 2 | # Begin $rc_base/init.d/gmetad
|
---|
| 3 | #
|
---|
| 4 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
| 5 | # Written by Andrew "Weibullguy" Rowland <darowland@ieee.org>
|
---|
| 6 | #
|
---|
| 7 | # Date: 2007-10-25
|
---|
| 8 |
|
---|
| 9 | . /etc/sysconfig/rc
|
---|
| 10 | . $rc_functions
|
---|
| 11 |
|
---|
| 12 | # Read in the command arguments
|
---|
| 13 | case "$1" in
|
---|
| 14 | start)
|
---|
| 15 | boot_mesg "Starting Ganglia Meta-Monitoring Daemon..."
|
---|
| 16 | loadproc /usr/sbin/gmetad
|
---|
| 17 | ;;
|
---|
| 18 | stop)
|
---|
| 19 | boot_mesg "Stopping Gangia Meta-Monitoring Daemon..."
|
---|
| 20 | killproc gmetad
|
---|
| 21 | ;;
|
---|
| 22 | restart)
|
---|
| 23 | $0 stop
|
---|
| 24 | $0 start
|
---|
| 25 | ;;
|
---|
| 26 | status)
|
---|
| 27 | statusproc /usr/sbin/gmetad
|
---|
| 28 | ;;
|
---|
| 29 | *)
|
---|
| 30 | echo "Usage: $0 {start|stop|restart|status}"
|
---|
| 31 | exit 1
|
---|
| 32 | esac
|
---|
| 33 |
|
---|
| 34 | exit 0
|
---|
| 35 |
|
---|
| 36 | # End $rc_base/init.d/gmetad
|
---|
Note:
See
TracBrowser
for help on using the repository browser.