Coder Social home page Coder Social logo

systemd can't stop service about mcscripts HOT 5 CLOSED

tapewerm avatar tapewerm commented on September 20, 2024
systemd can't stop service

from mcscripts.

Comments (5)

TapeWerm avatar TapeWerm commented on September 20, 2024

fb586c9 seems to have fixed this. The issue only happens if you stop the service after it has been running for at least 75 minutes or so. It has only gone smoothly once, but I anticipate the issue is gone for good. I'll keep this issue open until I test it more. I recommend updating MCscripts as this issue is transient but can break updates and stopping your server in general.

from mcscripts.

TapeWerm avatar TapeWerm commented on September 20, 2024

Oh my, it happened again. This definitely seems to be a systemd isssue, and not my fault. Of course, because it's systemd, it does not matter who is at fault, I am the one who needs to change. I'm gonna try changing the socket unit to persist even after the service stops, and see how systemd spazzes out when I do that. systemd--
Edit: When I made the socket persist it stopped, but systemd complained to me. Gonna explore more options.

from mcscripts.

TapeWerm avatar TapeWerm commented on September 20, 2024

For now fixes will be pushed to branch systemd_pain. Reason last 2 fixes were pushed is because they featured objective improvements (less required units, fixes to ordering). This is more extraneous unless it works around systemd's ordering bugs.
Edit: 1st test of systemd_pain was successful, I think systemd ignores socket ordering if it isn't listed in Sockets= or maybe I just got lucky. It doesn't derp every time after 75 minutes, just most times.
Edit 2: 2nd test failed, so it still doesn't work. I have given up on the socket being a transient unit, and have embraced it as a persistent one. It will be enabled separately, and tested as such. If it works it will be christened as the trendy new way of playing with systemd 237-3ubuntu10.41. I already have drafted an updated README and DisableServices.sh service migration code.

from mcscripts.

TapeWerm avatar TapeWerm commented on September 20, 2024

:galaxybrain: Can't have socket stopping before service if the socket doesn't stop when the service does. I tested the new service and socket and they work, as does the update script, and the README has been updated accordingly for new users.

from mcscripts.

TapeWerm avatar TapeWerm commented on September 20, 2024

Well I'm reopening this again, cause guess what, stop still doesn't work. It doesn't kill the socket this time so it can stop cleanly but it is an issue with the IRC bot failing to die properly. Ugh.
Edit: Happy ending, this whole saga only happens if you use the IRC bot. The hourly IRC bot timer I use to revive the bot after a network outage seems to be what started the bot right after it stopped. And when the bot would come back the stop job would cancel, but in doing so systemd would spaz out and stop the socket even though it didn't stop the service. The socket issue has already been worked around by me, now the bot issue is fixed too. I just removed rate limiting from the startup, and it will just keep failing till you stop it. It doesn't eat much CPU so I this seems like a simpler solution.

from mcscripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.