Add PID to status; add getpid command

Requested in #759
This commit is contained in:
Ben Peddell 2017-03-10 08:25:57 +10:00 committed by GitHub
parent 9f188a5ea1
commit 3b8419f530

View File

@ -2625,6 +2625,7 @@ doRemoveCronJob(){
printStatus(){
if isTheServerRunning ;then
echo -e "$NORMAL" "Server running: " "$GREEN" "Yes" "$NORMAL"
echo -e "$NORMAL" "Server PID: " "$GREEN" "$(getServerPID)" "$NORMAL"
else
echo -e "$NORMAL" "Server running: " "$RED" "No" "$NORMAL"
fi
@ -3106,6 +3107,9 @@ main(){
status)
printStatus
;;
getpid)
echo `getServerPID`
;;
*)
echo -n "arkmanager v${arkstVersion}: unknown command '$command' specified"
showUsage