Wakanda Server scripted clean shutdown

前端 未结 5 1629
野趣味
野趣味 2021-01-18 18:51

What is best practice to perform a clean shutdown of a Wakanda server via OS X shell scripting?

This would be with a solution currently loaded and operating.

5条回答
  •  佛祖请我去吃肉
    2021-01-18 19:01

    This shell script is tested working in Mac OS:

    #killWakanda.sh
    pids=$(pgrep $1) 
    kill -9 $pids
    

    Depends on you are running Wakanda community version of Enterprise version. The name of Wakanda server could be passed in as a parameter (Wakanda Server or Wakanda Enterprise Server):

    This kills Wakanda Enterprise Server

    sh /pathOfShellScript/killWakanda.sh Wakanda Enterprise Server
    

    This kills Wakanda Community Server

    sh /pathOfShellScript/killWakanda.sh Wakanda Server
    

提交回复
热议问题