Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Adds return values to the startup function #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions script/minecraft
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ is_running() {
mc_start() {
if is_running; then
echo "Tried to start but $SERVICE was already running!"
return 1
else
echo "$SERVICE was not running... starting."

Expand All @@ -84,8 +85,10 @@ mc_start() {
echo "$SERVICE is now running."
echo "$javapid" > $MCPATH/java.pid
echo "$screenpid.mc$PORT" > $MCPATH/screen.name
return 0
else
echo "Could not start $SERVICE."
return 1
fi
fi
}
Expand Down