| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
smf=no |
| 4 |
if [ -f /usr/sbin/svccfg -a -f /usr/sbin/svcadm ] |
| 5 |
then |
| 6 |
smf=yes |
| 7 |
fi |
| 8 |
|
| 9 |
if [ $smf = yes ] |
| 10 |
then |
| 11 |
/usr/sbin/svcadm disable svc:/ganglia/gmond |
| 12 |
else |
| 13 |
if [ -f /etc/init.d/gmond ]; |
| 14 |
then |
| 15 |
|
| 16 |
/etc/init.d/gmond stop >/dev/null 2>&1 |
| 17 |
|
| 18 |
fi |
| 19 |
fi |
| 20 |
|
| 21 |
exit 0 |