News for hackers. Stuff that matters.
Re:rc.d belongs in libexec, not etc by zeptonix on Tuesday August 25, 2020 @03:33AM (#24268935)
Nonsense. /etc is for important system stuff. libexec is BSD specific and btw not everything is BSD.
Re:rc.d belongs in libexec, not etc by geofft on Tuesday August 25, 2020 @03:43AM (#24268991)
libexec exists on Red Hat lineage OSes too, and it's standardized in LSB. (I think I'd basically say that it's Debian lineage that doesn't have it; the default of e.g. anything that follows GNU's 'make install' standards is to use it unless instructed not to.)

LSB is worth reading, because it had a precise definition of /etc that is not "important system stuff."

Re:rc.d belongs in libexec, not etc by kqr on Tuesday August 25, 2020 @04:23AM (#24269217)
Link for the lazy: https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-gene...

This seems like a very useful read indeed.

Re:rc.d belongs in libexec, not etc by teddyh on Tuesday August 25, 2020 @04:01AM (#24269094)
Debian also has libexec. I can see 80 packages¹ in Debian which has files in either /usr/libexec or /usr/$ARCH/libexec. The Debian Policy² does not mention libexec, but does refer to the FHS, which does allow libexec³.

1. Here is the list:

  https://tracker.debian.org/pkg/apper
  https://tracker.debian.org/pkg/arctica-greeter
  https://tracker.debian.org/pkg/arctica-greeter-guest-session
  https://tracker.debian.org/pkg/at-spi2-core
  https://tracker.debian.org/pkg/bacula-common
  https://tracker.debian.org/pkg/dillo
  https://tracker.debian.org/pkg/drkonqi
  https://tracker.debian.org/pkg/eximon4
  https://tracker.debian.org/pkg/fgetty
  https://tracker.debian.org/pkg/flatpak
  https://tracker.debian.org/pkg/flatpak-builder-tests
  https://tracker.debian.org/pkg/flatpak-tests
  https://tracker.debian.org/pkg/flatpak-xdg-utils
  https://tracker.debian.org/pkg/flatpak-xdg-utils-tests
  https://tracker.debian.org/pkg/font-viewer
  https://tracker.debian.org/pkg/frameworkintegration
  https://tracker.debian.org/pkg/gamemode-daemon
  https://tracker.debian.org/pkg/gstreamer-qapt
  https://tracker.debian.org/pkg/gtk-3-examples
  https://tracker.debian.org/pkg/hotspot
  https://tracker.debian.org/pkg/iwd
  https://tracker.debian.org/pkg/kde-cli-tools
  https://tracker.debian.org/pkg/kde-config-gtk-style
  https://tracker.debian.org/pkg/kde-config-gtk-style-preview
  https://tracker.debian.org/pkg/kde-config-systemd
  https://tracker.debian.org/pkg/kdeconnect
  https://tracker.debian.org/pkg/kde-telepathy-auth-handler
  https://tracker.debian.org/pkg/kde-telepathy-call-ui
  https://tracker.debian.org/pkg/kde-telepathy-filetransfer-handler
  https://tracker.debian.org/pkg/kde-telepathy-text-ui
  https://tracker.debian.org/pkg/khelpcenter
  https://tracker.debian.org/pkg/kinit
  https://tracker.debian.org/pkg/kio
  https://tracker.debian.org/pkg/kwin-common
  https://tracker.debian.org/pkg/lambda-align2
  https://tracker.debian.org/pkg/libexecline2.5
  https://tracker.debian.org/pkg/libexecline-dev
  https://tracker.debian.org/pkg/libexecs0
  https://tracker.debian.org/pkg/libexecs-dev
  https://tracker.debian.org/pkg/libexecs-embedded0
  https://tracker.debian.org/pkg/libkf5config-bin
  https://tracker.debian.org/pkg/libkf5kdelibs4support5-bin
  https://tracker.debian.org/pkg/libkf5purpose-bin
  https://tracker.debian.org/pkg/libkf5screen-bin
  https://tracker.debian.org/pkg/libkf5su-bin
  https://tracker.debian.org/pkg/libkf5wayland-dev
  https://tracker.debian.org/pkg/libkf5xmlgui-bin
  https://tracker.debian.org/pkg/libkim-api-dev
  https://tracker.debian.org/pkg/libkscreenlocker5
  https://tracker.debian.org/pkg/libktpotr9
  https://tracker.debian.org/pkg/libmbim-proxy
  https://tracker.debian.org/pkg/libmodsecurity3
  https://tracker.debian.org/pkg/libqmi-proxy
  https://tracker.debian.org/pkg/mlucas
  https://tracker.debian.org/pkg/ntpsec
  https://tracker.debian.org/pkg/openconnect
  https://tracker.debian.org/pkg/opensmtpd
  https://tracker.debian.org/pkg/opensmtpd-extras
  https://tracker.debian.org/pkg/os-autoinst
  https://tracker.debian.org/pkg/ostree-boot
  https://tracker.debian.org/pkg/ostree-tests
  https://tracker.debian.org/pkg/plasma-desktop
  https://tracker.debian.org/pkg/plasma-discover
  https://tracker.debian.org/pkg/plasma-discover-backend-snap
  https://tracker.debian.org/pkg/plasma-workspace
  https://tracker.debian.org/pkg/plasma-workspace-wayland
  https://tracker.debian.org/pkg/polkit-kde-agent-1
  https://tracker.debian.org/pkg/powerdevil
  https://tracker.debian.org/pkg/pulseaudio-module-gsettings
  https://tracker.debian.org/pkg/remote-logon-service
  https://tracker.debian.org/pkg/rkward
  https://tracker.debian.org/pkg/seahorse
  https://tracker.debian.org/pkg/sysprof
  https://tracker.debian.org/pkg/tomcat9
  https://tracker.debian.org/pkg/tomcat9-common
  https://tracker.debian.org/pkg/xdg-dbus-proxy-tests
  https://tracker.debian.org/pkg/xdg-desktop-portal
  https://tracker.debian.org/pkg/xdg-desktop-portal-gtk
  https://tracker.debian.org/pkg/xdg-desktop-portal-kde
  https://tracker.debian.org/pkg/xdg-desktop-portal-tests
2. https://www.debian.org/doc/debian-policy/

3. https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#us...

Re:rc.d belongs in libexec, not etc by JdeBP on Tuesday August 25, 2020 @07:05AM (#24270065)
Debian generally favours individual subdirectories of /usr/lib instead. /usr/lib/policykit-1/polkitd rather than /usr/local/libexec/polkitd (in older FreeBSD packages), for example.
Re:rc.d belongs in libexec, not etc by jmmv on Tuesday August 25, 2020 @06:47AM (#24269954)
libexec is not really BSD-specific, but yes, this article is about BSD.

However, I also mentioned that the same problem applies to pre-systemd Linux systems because of their /etc/init.d/ directory. systemd has actually done the right thing here (which is also mentioned in the article) by putting unit logic under /lib/.

Re:rc.d belongs in libexec, not etc by masklinn on Tuesday August 25, 2020 @03:34AM (#24268942)
The article is about BSD.
Re:rc.d belongs in libexec, not etc by zeptonix on Tuesday August 25, 2020 @03:40AM (#24268974)
... and not everything is BSD
Re:rc.d belongs in libexec, not etc by masklinn on Tuesday August 25, 2020 @03:45AM (#24269005)
Which is not relevant because the article is about BSDs.

If your point is that rc should not be modified for <whatever> because of BSDs… rc is not a centralised and unified tool, how BSDs handle their initialisation process has no bearing on any other system unless those others decide to follow suit.

Re:rc.d belongs in libexec, not etc by geofft on Tuesday August 25, 2020 @03:42AM (#24268986)
But this article is not about everything.