Skip to content

suppress error when crash detection is not used#308

Merged
sandain merged 1 commit intoMinecraftServerControl:mainfrom
iammattcoleman:monitor.pid-not-found
Feb 14, 2022
Merged

suppress error when crash detection is not used#308
sandain merged 1 commit intoMinecraftServerControl:mainfrom
iammattcoleman:monitor.pid-not-found

Conversation

@iammattcoleman
Copy link
Copy Markdown
Contributor

Check if monitor.pid exists before attempting to read from it.
This prevents the following error from appearing when stopping a server:

cat /opt/mscs/worlds/example/monitor.pid: No such file or directory

Check if monitor.pid exists before attempting to read from it.
This prevents the following error from appearing when stopping a server:

cat /opt/mscs/worlds/example/monitor.pid: No such file or directory
@sandain
Copy link
Copy Markdown
Member

sandain commented Feb 14, 2022

Thanks for the patch @iammattcoleman. I had noticed this issue before, but never got around to fixing it.

@sandain sandain merged commit 8118d10 into MinecraftServerControl:main Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants