MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
479 stars 61 forks source link

suppress error when crash detection is not used #308

Closed iammattcoleman closed 2 years ago

iammattcoleman commented 2 years ago

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 commented 2 years ago

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