Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Spark starts a simple script

Shulou Source: shulou.com Published: 2022-06-03 08:11:03 11月23日 Update

#! / bin/bash # The next lines are for chkconfig on RedHat systems.# chkconfig: 3598 011 description: Starts and stops xxx Server # autor:516249940@qq.com#date:2017-03-06 # The next lines are for chkconfig on SuSE systems.# / etc/init.d/xxx#### BEGIN INIT INFO# Provides: xxx# Required-Start: $network $syslog# Required-Stop:# Default-Start: 235 # Default-Stop: 06 # Short-Description: Starts and stops xxx Server # Description: Starts and stops xxx Server # END INIT INFOSPARK_SBIN= "/ usr/local/spark/sbin" JAVA_ETC= "/ etc/alternatives" case $1 in start) $SPARK_SBIN/start-all.sh ; stop) $SPARK_SBIN/stop-all.sh;; restart | reload | force-reload) $SPARK_SBIN/stop-all.sh sleep 3 $SPARK_SBIN/start-all.sh;; status) # steps to check status $JAVA_ETC/jps *) echo "$0 {start | stop | restart | status}" exit 4;; esac

Tags: Steps status script Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple Huawei Shulou Technology MySQL