allow sysctl path to be configured at build time#428
allow sysctl path to be configured at build time#428troglobit merged 1 commit intofinit-project:masterfrom
Conversation
troglobit
left a comment
There was a problem hiding this comment.
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
sysctlisn't located in/sbin- i followed convention seen elsewhere