mojira.dev
BDS-203

BDS not stopping gracefully when running as a service

Summary

BDS does not respond to standard server signals.

Steps to reproduce... (windows)

  1. Download and unzip BDS

  2. Download and unzip NSSM

  3. Configure BDS as a service and start - ensure you enable logging for easiest eval

  4. Stop the service using cmd/powershell/services.msc

  5. Note in the log that the server immediately terminates rather than running a safe shutdown

What I expected to happen...

BDS should handle the termination signal gracefully to allow BDS to be configured as a service.

What actually happened...

Server immediately terminated, risking corruption etc.

How this affects admins

At the moment its possible to configure BDS as a service and it works without issue. However when restarting the host or even just the service, it terminates immediately causing an unsafe shutdown and risking corruption.

Linked issues

Comments 24

Currently the way most server owners do this is by using the screen package. I will agree though, it would be nice if the server could detect that the operating system is shutting down and gracefully stop itself.

Currently the way most server owners do this is by using the screen package. I will agree though, it would be nice if the server could detect that the operating system is shutting down and gracefully stop itself.

Currently the way most server owners do this is by using the screen package. I will agree though, it would be nice if the server could detect that the operating system is shutting down and gracefully stop itself.

Thanks, Jacob. "screens" was a helpful tip.

Thanks, Jacob. "screens" was a helpful tip.

14 more comments

Hi

Does this issue still occur after updating to 1.17.34?

This ticket will automatically reopen when you reply.

Hi

Does this issue still occur after updating to 1.17.34?

This ticket will automatically reopen when you reply.

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

migrated

(Unassigned)

Confirmed

Retrieved