Skip to content
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

TT_PRELOAD #3268

Closed
Tracked by #3543
TarantoolBot opened this issue Dec 12, 2022 · 0 comments · Fixed by #3616
Closed
Tracked by #3543

TT_PRELOAD #3268

TarantoolBot opened this issue Dec 12, 2022 · 0 comments · Fixed by #3616
Assignees
Labels
2.11 2.11 release and the associated technical debt feature A new functionality server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Dec 12, 2022

Related dev. issue(s): tarantool/tarantool#7714

Product: Tarantool
Since: 2.11
Root document: https://www.tarantool.io/en/doc/latest/book/admin/instance_config/
SME: @ Totktonada

Details

A script file or a module may be specified in the TT_PRELOAD
environment variable to load before the main script. For example:

$ TT_PRELOAD=/path/to/foo.lua tarantool main.lua

The foo.lua script will be executed before main.lua.

$ TT_PRELOAD=foo.bar.baz tarantool main.lua

The foo.bar.baz module will be loaded before executing main.lua.

A value that ends with .lua is considered as a script file, otherwise
it is considered as a module name.

Several files or modules may be passed as a semicolon separated list:

$ TT_PRELOAD="/path/to/foo.lua;foo.bar.baz" tarantool main.lua

Don't forget quotes, a shell interprets a semicolon on its own.

Redundant (duplicated, leading, trailing) semicolons are ignored.

If something goes wrong at script/module execution, tarantool reports
the problem and exits.

A script receives a path to the file in ..., a module gets the module
name. arg is the same as for the main script.
Requested by @ Totktonada in tarantool/tarantool@435e5ef.

@veod32 veod32 added 2.11 2.11 release and the associated technical debt feature A new functionality server [area] Task relates to Tarantool's server (core) functionality labels Mar 6, 2023
@p7nov p7nov self-assigned this Aug 7, 2023
p7nov added a commit that referenced this issue Aug 16, 2023
Resolves #3268 

Co-authored-by: Andrey Aksenov <38073144+andreyaksenov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.11 2.11 release and the associated technical debt feature A new functionality server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants