Amitai Schleier

@schmonz@schmonz.com

Force multiplier.
Outcome improver.
Decision sharer.
Developer, leader, coach.
https://agilein3minut.es podcaster.
Musician.
Bad poet (award-winning).
JoinedApr 05, 2017 (@octodon.social)
SelfHostedMar 30, 2025
Pronounshe/they
Podcasthttps://agilein3minut.es
Consultancyhttps://latentagility.com
Morehttps://schmonz.com
0 ★ 0 ↺

Amitai Schleier »
@schmonz@schmonz.com

Anyone running a server under process supervision? Interested in how you stop cleanly. My first pass is a wrapper for the usual signals that writes "/stop\n" to the server: https://gist.github.com/schmonz/788a08fe72ea4978d47fe664ea8cc06d

What have I missed?

Also, how often might I need to send other server commands?

    ...

    Laurent Bercot »
    @ska@social.treehouse.systems

    @schmonz That's how I would do it (but I would use execline's trap command 😉)

    Also, Minecraft is written in Java? Oof, that shows its age.

      ...
      1 ★ 0 ↺

      Amitai Schleier »
      @schmonz@schmonz.com

      Oooh, execline, of course! Perfect for purpose. Someone on IRC sent me their old execline run script that also sets up a named pipe so I can send other one-off commands to the server when needed.

        Beady Belle Fanchannel »
        @Profpatsch@mastodon.xyz

        @ska @schmonz That’s why it was always super moddable. JVM class disassemblers are dime a dozen and it’s trivial to inject your own code via dynamic runtime reflection and stuff.

        Arguably why it got so popular in the first place. It didn’t even have official modding support for the longest time.

          ...

          Beady Belle Fanchannel »
          @Profpatsch@mastodon.xyz

          @schmonz infinisil wrote a pretty incredible automatic config a few years back github.com/infinisil/on-demand

          Maybe that helps. Since it starts the server on demand and serializes & stops it after 15 mins or so.

            ...
            0 ★ 0 ↺

            Amitai Schleier »
            @schmonz@schmonz.com

            @Profpatsch@mastodon.xyz :whoa-keanu: that is clever. I'm running on a fixed-price VPS, though, so no harm leaving the real thing up.

              History