Login
You're viewing the functional.cafe public feed.
  • Nov 17, 2026, 1:18 PM

    So what happens to apachectl, and to people who are used to it?

    Well, this kinda sucks. Service-specific control commands are a relic from the past; using supervision or service manager commands to address services is much better - this unifies the interface across services and makes it easy to define distribution policies; and modern supervision systems generally provide better guarantees than service-specific control commands, which are often not much more than three shell scripts in a trenchcoat to hack something that looks like supervision.

    That's... not a very satisfying answer, is it?

    It's possible to get a better one - but it requires effort. Since apachectl and similar control commands are not usable as is in a supervised world, people who provide the service files - whether the distribution, as it used to be and should still be, or upstream, which for some reason took up that burden and is often doing a bad job of it - should also provide replacements for control commands, written on top of service manager commands.

    So, instead of systemd invoking apachectl, it should be apachectl invoking systemctl.

    • apachectl start ➡️ systemctl start httpd
    • apachectl stop ➡️ systemctl stop httpd
    • etc.

    And yes, that requires a lot of writing for someone who supports different service managers - which is what distros should do because monocultures are bad. But the good news is that these can generally be pretty simple shims; this is far from complex or difficult code. 11/12

    (Edit: clarity)

    💬 1🔄 2⭐ 4

Replies

  • Nov 17, 2026, 1:20 PM

    I have been interested in supervision systems and service management since daemontools came out, which will soon be 30 years ago. I have written and maintained s6 for 15 years now, and every year I find some new issue, or some rabbit hole of complexity, and it always amazes me that starting daemons, a subject that on paper looks pretty straightforward, can be full of pitfalls and traps and subtle things, and I hadn't clocked it as a fractal subject but looking back, it certainly is. If I prepared a talk on it today, it might end up being more than 6 hours long.

    If the subject interests you, a good starting point is the 15-minute introductory video I gave at FOSDEM 2017: archive.fosdem.org/2017/schedu
    Some stuff is out of date (#s6 is on OFTC, not on Freenode anymore...) and omg did I really have such a French accent? but most of it holds up.

    Thanks for coming to this long-winded, rambling TED talk. This is what happens when I'm waiting for my laundry and scrolling fedi. 12/12

    💬 1🔄 4⭐ 16
  • 💬 0🔄 0⭐ 0