TRAFFIC_LAYOUT(1) | Apache Traffic Server | TRAFFIC_LAYOUT(1) |
traffic_layout - Traffic Server sandbox management tool
traffic_layout SUBCOMMAND [OPTIONS]
Document for the special functionality of runroot inside traffic_layout. This feature is for the setup of traffic server runroot. It will create a runtime sandbox for any program of traffic server to run under.
First we need to create a runroot. It can be created simply by calling command init.
traffic_layout init --path /path/to/runroot
A runroot will be created in /path/to/runroot, available for other programs to use. If the path is not specified, the current working directory will be used.
NOTE:
Use the current working directory or the specific path to create runroot. The path can be absolute or relative.
Example:
traffic_layout init (--path /path/to/sandbox/) (--force) (--absolute) (--copy-style=[HARD/SOFT/FULL]) (--layout=special_layout.yml)
For the --layout=[<YAML file>] option, a custom layout can be used to construct a runroot. Below is an example of customized yaml file (custom.yml) to construct.
prefix: ./runroot exec_prefix: ./runroot bindir: ./runroot/custom_bin sbindir: ./runroot/custom_sbin sysconfdir: ./runroot/custom_sysconf datadir: ./runroot/custom_data includedir: ./runroot/custom_include libdir: ./runroot/custom_lib libexecdir: ./runroot/custom_libexec localstatedir: ./runroot/custom_localstate runtimedir: ./runroot/custom_runtime logdir: ./runroot/custom_log cachedir: ./runroot/custom_cache
If traffic_layout init --layout="custom.yml" is executed, a runroot following the format above will be created.
NOTE:
Example:
traffic_layout remove (--path /path/to/sandbox/) (--force)
Verify the permission of the sandbox. The permission issues can be fixed with --fix option. --with-user option can be used to verify the permission of the runroot for specific user.
Example:
traffic_layout verify (--path /path/to/sandbox/) (--fix) (--with-user root)
2023, dev@trafficserver.apache.org
November 2, 2023 | 8.1 |