systemd thinks /stop = server crash

Discussion in 'Spigot Help' started by realSamiel, Jul 8, 2021.

  1. Hi,
    I am setting up a server on a linux server and it has to be relatively professional.

    The server is running as a systemd service that automatically tries tries to restart after a crash.
    I have two problems with it:
    1. When I /stop the server, systemd thinks it crashed and will restart the service.
    2. The systemd stop command uses rcon to stop the server via console, which is obviously not great.

    I need a way to shutdown the server gracefully without using /stop and I need to /stop execute my stop.sh bash script.

    I hope someone here knows how to do this. If so I would be unbelievable happy.
    Thank you in advance, kind stranger.