Git Product home page Git Product logo

Comments (5)

jakeheis avatar jakeheis commented on May 18, 2024

Just to be clear, are you suggesting that instead of daemonizing processes using nohup (as ZewoFlock and company currently do), Flock should integrate with systemd and/or related tools to automatically restart processes on failure?

If so, I think it's a smart idea and should be pursued in the server specific Flock packages (like ZewoFlock) rather than the general Flock package itself

from flock.

Danappelxx avatar Danappelxx commented on May 18, 2024

Why do you think so? Swift applications have a nasty tendency to crash with no way to recover (optional unwrap, index-out-of-bounds, fatalerror). I would say its pretty vital for a service like Flock that manages your application to restart it if that happens.

from flock.

jakeheis avatar jakeheis commented on May 18, 2024

My reasoning was essentially that, as of right now, Flock isn't actually in charge of starting any processes, be it through nohup or systemd; it delegates that work to ZewoFlock and the like. I could see value in centralizing this functionality in Flock though, as you're suggesting, since I would guess that regardless of Swift server library this functionality would be desired

from flock.

jakeheis avatar jakeheis commented on May 18, 2024

I decided to include systemd functionality within Flock itself, as you suggested, and then allow servers from within their own packages to take advantage of this functionality. VaporFlock and ZewoFlock both do so now

from flock.

Danappelxx avatar Danappelxx commented on May 18, 2024

Didn't see this until now - awesome! Thanks for being so responsive :)

from flock.

Related Issues (15)

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.