-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow sysctl path to be configured at build time #428
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to make this configurable! You'll undoubtedly find more.
The format of these have been a bit up in the air. For internal ones, and those sourced from paths.h for instance, they are usually prefixed with a _PATH
, but for those read at configure
time I think we should go with FOO_PATH
.
Example (which needs updating): modules-load.c
use MODPROBE_PATH
, which needs an #ifndef
like yours in procps.c
.
So please go for SYSCTL_PATH
instead, and if you'd like to update more plugins to follow, you're very welcome to do so 😃 👍
334a6a3
to
0d742d6
Compare
ah, yeah i see now - thanks
well... most of the others are different - they have the implicit assumption that
in fact... maybe we should just modify |
Hmm, yeah 🤔
For most users that would probably be sufficient, yes. But I like that with your PR we now will get a way for users to override. Also, as PID 1 the default |
out of curiosity what is the difference between maybe i am thinking too hard about a fairly small detail... |
There is no difference really, in my mind. Much of Finit grew organically, sometimes by external contributions, some hard-coded paths, others relied on This was a generic answer, maybe not what you were looking for? I guess what I'd like is to have the following pattern in most/all places:
Which would make it possible to both rely on |
great answer, what i was looking for in that case... how about we merge this as it stands and in the future if i want i can reference this in a new PR? thanks |
Yup 💯 just wanted to sync with you first. |
my
sysctl
isn't located in/sbin
- i followed convention seen elsewhere