mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-17 21:23:18 +00:00
33 lines
592 B
Bash
Executable File
33 lines
592 B
Bash
Executable File
#!/bin/sh
|
|
# IBM(c) 2014 Apache 2.0
|
|
# chkconfig: 345 85 60
|
|
# description: Confluent hardware manager
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: confluent
|
|
# Default-Start: 3 4 5
|
|
# Default-Stop: 0 1 2 6
|
|
### END INIT INFO
|
|
|
|
. /etc/init.d/functions
|
|
case $1 in
|
|
restart)
|
|
echo -n 'Stopping Confluent '
|
|
/opt/confluent/bin/confetty shutdown /
|
|
echo -n 'Starting Confluent '
|
|
/opt/confluent/bin/confluent
|
|
success
|
|
;;
|
|
start)
|
|
echo -n 'Starting Confluent '
|
|
/opt/confluent/bin/confluent
|
|
success
|
|
;;
|
|
stop)
|
|
echo -n 'Stopping Confluent '
|
|
/opt/confluent/bin/confetty shutdown /
|
|
success
|
|
;;
|
|
esac
|
|
|