Comments (6)
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.
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.
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.
@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.
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.
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)
- nodejs: Need to be compatible with non-utf8 text responses
- Couldn't connect to server after install on Ubuntu HOT 1
- I get 503 error with Images and CSS files HOT 6
- unit affects the performance of Node.js operations with Redis
- unitctl not installed with `brew install nginx/unit/unit` on macOS HOT 3
- NGINX UNIT "PHP" application is not supported on RHEL 9
- Unit not starting WAR File HOT 2
- Badge colors don't match NGINX colors
- nginx unit php server stops responding when using supervisor HOT 2
- BUG: Environment Variables not passed to Wasm Applications HOT 4
- Error: Cannot find module 'unit-http/loader' HOT 3
- Error 503, PHP HOT 8
- [Feature Request] Basic Authentication for Control Socket HOT 3
- CLI: subcommand for saving configuration HOT 3
- CLI: deploy configuration to many instances HOT 3
- CLI: SSH Support HOT 4
- Unit is not compiled with php, njs and wasm-wasi-component HOT 5
- Node.js: Unable to run due to Server this.on is not a function HOT 4
- "Waiting for Server Response" time consistently different depending on POST DATA Length? HOT 9
- http2 on; doesnt work as expected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.