您好,登錄后才能下訂單哦!
其實很菜的哈哈
#!/bin/bash #gj game server start procedure #xcn qq:995345781 #version 2.0 PATH_DIR=/application/game/game002 prog=game002 start() { [ "$EUID" != "0" ] && exit 4 cd /application/game/game002/ ./game002 -d echo -n $"starting $prog:" if [ "$?" -ne 0 ] then echo "start erro" fi } stop() { [ "$EUID" != "0" ] && exit 4 echo -n $"stoping down $prog:" kill `cat $PATH_DIR/server.pid` } case "$1" in start) start ;; stop) stop ;; *) echo $"usage:$0 {start|stop}" exit 2 esac
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。