vim /etc/init.d/flink
#!/bin/bash
#chkconfig:2345 20 90
#description:kafka
#processname:kafka
export JAVA_HOME=//usr/local/jdk
case $1 in
start) /usr/local/flink/bin/start-cluster.sh ;;
stop) /usr/local/flink/bin/stop-cluster.sh ;;
*) echo "require start|stop" ;;
esac
chmod a+x /etc/init.d/flink
标签:脚本,bin,启动,flink,stop,start,usr,local
From: https://www.cnblogs.com/cw2blog/p/16945230.html