-
Brief feature descriptionAre there some mechanisms which can be used to configure the lock file path (something like the toml file or callable API)? Detailed informationNONE |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@Xcliu I do not know if you mean the lock file which roudi creates or the underlying
#include "iceoryx_hoofs/posix_wrapper/file_lock.hpp"
auto fileLock = iox::posix::FileLockBuilder().name("myLockName")
.path("/home/iceoryx")
.permission(iox::cxx::perms::owner_all)
.create()
.expect("Oh no I couldn't create the lock"); HintIf you would like to make this file lock path change permanently in your platform you can create easily your own platform with all your custom settings, see this article: https://github.com/eclipse-iceoryx/iceoryx/blob/master/doc/website/advanced/custom-iceoryx-platform.md Let's say your platform should be based on our FutureAt the moment we do not have this on our radar as a runtime feature so that you can provide this via command line or config file. The problem here is that roudi and every application either require the same command line parameters or have to read the identical config file which often leads to problems. When the configuration differs a lot can go wrong. @Xcliu what would you prefer? Or are you fine with the custom platform approach? |
Beta Was this translation helpful? Give feedback.
-
@Xcliu I will transform this issue into discussion which closes the issue for now. If some work follows out of the discussion we can create another issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! This answer is perfect for me. |
Beta Was this translation helpful? Give feedback.
@Xcliu I do not know if you mean the lock file which roudi creates or the underlying
FileLock
construct in our posix wrappers so you get an answer for both 😄RouDi lock file path This can be configured platform specific in the file
iceoryx_platform/YOUR_PLATFORM/include/iceoryx_platform/platform_settings.hpp
by adjusting the variableIOX_LOCK_FILE_PATH_PREFIX
.Lets assume you are on our standard
linux
platform and would like to change the path to/home/iceoryx/
you would openiceoryx_platform/linux/include/iceoryx_platform/platform_settings.hpp
and change the line toconstexpr const char IOX_LOCK_FILE_PATH_PREFIX[] = "/home/iceoryx";
The disadvantage is that this is only temporarily sin…