timvisee / lazymc

💤 Put your Minecraft server to rest when idle.
GNU General Public License v3.0
573 stars 15 forks source link

Add option to exit #19

Closed megabyte6 closed 2 years ago

megabyte6 commented 2 years ago

Hi, I was wondering if adding a "stop" command would be possible because I'm able to start lazymc but I haven't found a way yet to stop the executable without manually killing the process. If there already is a way to do this please let me know. Thank you! 🙂

timvisee commented 2 years ago

Using CTRL+C (SIGINT) should work. If the server is currently active, it will stop the server first. When it is sleeping you can CTRL+C again. Does that work?

megabyte6 commented 2 years ago

Yes, it works. Thank you! I completely forgot about using CTRL+C 🤦‍♂️.