-
Notifications
You must be signed in to change notification settings - Fork 123
lcdproc: -c option #1416
Comments
I have been thinking a bit about this Maybe '-c' doesn't stand for config file, but for container? I guess the idea of a configuration container is very alien to somebody working in application integration all the time, but it might be a valid thing to do for trivial sandboxing, unit testing, build server integration, etc. This is what I'd expect a configuration container to do: Bypass any elektra setup that exists on the system other then the file named after the Maybe |
Thanks for sharing! Elektra actually has two containers (aka namespaces): Applications, however, could still write out In any case, with our proposed API ( |
Yet an other usecase where having one global configuration database is somewhat quirky: Suppose I'm mounting a foreign rootfs somewhere on my system (i.e. to unbrick it after something went wrong). If I want to use elektra tools to modify the configuration, I guess the usual answer is to chroot into the foreing rootfs -- however if the host system is x86 and the target is arm, this won't work. Maybe there is a workaround, but I guess it is a corner case that should be kept in mind. Of course this is a purely theoretical problem at the moment and shouldn't distract anybody from working on the next release. |
Wouldn't this specific use case work when we do chroot as late as possible (at a point where no further But, you are right: In many custom installations, build servers, or development setups a global key database is unwanted. By recompiling Elektra (and possibly having multiple Elektras on the system) you can already support such setups (E.g. on our build server, each Elektra in every build job gets its own folders for all namespaces). The question is if we should make it easier to split the global key database, also see #1249. |
markus2330 writes:
Wouldn't this specific use case work when we do chroot as late as possible (at a point where no further `exec` is required)?
I doubt this would work with elektra's plugin architecture ...
|
I quickly tried it, and except of an issue unrelated to |
moved to ElektraInitiative/lcdproc#12 |
support to choose another config file with
-c
. Two options with #1074dir
mountpoint to/LCDproc.conf
is already done within the source repo. This means: if you are in the source code directory,/LCDproc.conf
will be used. That would be the case, however, even if you start the installed binary. (Except the starter script for the installed binary, modifies the current working directory anyway)./LCDproc.conf
as dir-mountpoint (and unmounts afterwards). Or evencd
and mount the file as given by-c
.The text was updated successfully, but these errors were encountered: