GithubHelp home page GithubHelp logo

Comments (6)

thresheek avatar thresheek commented on June 25, 2024

While it's true wrt docker-based environments, that argument does not hold up to systemd - it happily accepts Type=forking to look after forking software.

from unit.

igorsysoev avatar igorsysoev commented on June 25, 2024

The program is called unitd which means "unit daemon".
It would be strange if its default mode is foreground.
It can probably be renamed to something else like "unit service".
The name "unit" however is reserved for unit control utility.

from unit.

VBart avatar VBart commented on June 25, 2024

Adding a compile time option only complicates things.

Most users will never compile Unit, they will install it from packages. Currently, the behaviour is straightforward: daemonized by default and an option to avoid daemonization. If we introduce the compile time option, users won't know the default.

from unit.

xytis avatar xytis commented on June 25, 2024

@VBart I agree that compile-time flag which I initially proposed would introduce mixup. But as I understood from projects roadmap, you are aiming to bring Nginx Unit into container world as a first-class citizen, for me it just makes sense that applications would start in foreground unless specifically instructed not to do so. For example, with a -d|--daemon flag.

But @igorsysoev has a point too. Which operating systems do have that utility? I searched Debian jessie|stretch|buster and CentOS7 for binary matching that name, yet I could not find any.

from unit.

igorsysoev avatar igorsysoev commented on June 25, 2024

I meant that "unit" name is reserved for our future control utility.
The utility will control local or remote unitd in the same way as docker control dockerd.

from unit.

xytis avatar xytis commented on June 25, 2024

Oh, thanks for the clarification.
Hashicorp has a similar approach with using single binary and multiple "actions". (unit daemon vs unit [command])

But I see the problem with naming here. I guess I will just have to accept that unitd is daemon by definition :)

from unit.

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.