Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong switched scripts #1009

Merged
merged 3 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions scripts/usecases/xonotic/statusServer.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
#!/bin/bash

echo "[Stop Xonotic FPS Game]"
echo "[Status Xonotic FPS Game]"

echo ""
echo "[Current server.log]"
echo "[Xonotic Server.log so far]"
cat ~/Xonotic/server.log
echo ""

PID=$(ps -ef | grep [x]onotic | awk '{print $2}')
kill $PID
echo ""
echo "[Stop Xonotic] PID=$PID"

ps -ef | grep [x]onotic
PS=$(ps -ef | head -1; ps -ef | grep [x]onotic)
echo "[Process status of Xonotic]"
echo "$PS"

echo ""
15 changes: 9 additions & 6 deletions scripts/usecases/xonotic/stopServer.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/bin/bash

echo "[Status Xonotic FPS Game]"
echo "[Stop Xonotic FPS Game]"

echo ""
echo "[Xonotic Server.log so far]"
echo "[Current server.log]"
cat ~/Xonotic/server.log
echo ""

PS=$(ps -ef | head -1; ps -ef | grep [x]onotic)
echo "[Process status of Xonotic]"
echo "$PS"

PID=$(ps -ef | grep [x]onotic | awk '{print $2}')
kill $PID
echo ""
echo "[Stop Xonotic] PID=$PID"

ps -ef | grep [x]onotic

echo ""