• Yearning启停脚本(开机自启)


    路径 /etc/init.d/yearning

    #!/bin/bash
    # description: yearning Start Stop Restart
    # processname: yearning
    # chkconfig: 2345 55 25

    CATALINA_HOME=/data/Yearning-go

    case $1 in
    start)
    cd $CATALINA_HOME
    nohup ./Yearning -s >/dev/null 2>&1 &
    cd
    ;;
    stop)
    ps -e|grep Yearning|awk '{print "kill -9 "$1}'|sh
    ;;
    restart)
    ps -e|grep Yearning|awk '{print "kill -9 "$1}'|sh
    sleep 1
    cd $CATALINA_HOME
    nohup ./Yearning -s >/dev/null 2>&1 &
    cd
    ;;
    *)
    echo 'please use : Yearning {start | stop | restart}'
    ;;
    esac
    exit 0

     chkconfig --add yearning
     chkconfig yearning on

  • 相关阅读:
    快速模幂
    UPC-2249 曲线分割【递推】
    maven 服务器
    maven repo
    php-fpm sock
    mysql
    go 1
    xdebug
    centos
    win10 2503 2502
  • 原文地址:https://www.cnblogs.com/jackcui/p/14144745.html
Copyright © 2020-2023  润新知