Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure, then let me put a command in my files instead of requiring a separate service.

>what if I want it to be started when a request hits a given port?

I really don't think you should be turning your init system into a general programming environment that can do that.



> I really don't think you should be turning your init system into a general programming environment that can do that.

We have :) https://www.freedesktop.org/software/systemd/man/systemd.soc...

No need for multiple anything, the units can be parameterized -- user@my.service, for example


Oh I know it's possible, I just don't think you should be doing that in an init system.


Understood, fair enough. I'm not too bothered by it, it's been useful here and there


Socket activation is declarative. My last point is the dynamic one, but that is just calling out to systemd. The point is, all three can share the same service description.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: