-
Maxwell启动停止脚本
-
进入 maxwell/bin 直接运行下面的内容, 生成脚本
-
#! /bin/bash # # description: maxwell # # File : maxwell # # Description: Starts and stops the maxwell server # source /etc/rc.d/init.d/functions source /etc/profile cd $(cd "$(dirname "$0")"; pwd)/../ MAXWELL_HOME=$PWD #MAXWELL_HOME=/opt/apps/maxwell/ MAXWELL_START_SHELL=$MAXWELL_HOME/bin/maxwell MAXWELL_CONF=$MAXWELL_HOME/conf/config.properties MAXWELL_LOG=$MAXWELL_HOME/logs/maxwell-service.log MAXWELL_PID=$MAXWELL_HOME/bin/maxwell-server.pid APP_NAME="maxwell" usage() { echo "Usage: ./service.sh [start | stop | restart | status]" exit 1 } start() { if [ -f "$MAXWELL_PID" ] ; then pid=`ps -ef | grep $APP_NAME | grep $MAXWELL_CONF | grep -v grep | awk '{print $2}'` echo "$APP_NAME already exists and this service status information is: $APP_
Maxwell启动停止脚本
最新推荐文章于 2024-04-28 16:17:40 发布