Cheatsheet
1. root
service commands
As root
unix user:
Command | Description |
---|---|
service metwork start |
start all installed metwork services |
service metwork stop |
stop all installed metwork services |
service metwork status |
check all installed metwork services |
service metwork start mfbus |
start mfbus metwork services |
service metwork stop mfbus |
stop mfbus metwork services |
service metwork status mfbus |
check mfbus metwork services |
Note: if you don't have
service
command on your Linux distribution, you can use/etc/rc.d/init.d/metwork
instead ofservice metwork
. For example:/etc/rc.d/init.d/metwork start
instead ofservice metwork start
. If your Linux distribution usessystemd
component, you can also start metwork services with classicsystemctl
commands.
2. root files or directories
Path | Description |
---|---|
/etc/metwork.config.d/mfbus/config.ini |
override the mfbus module configuration at system level (note: the first line of this file must be [INCLUDE_config.ini] ) |
/opt/metwork-mfbus/config/config.ini |
default mfbus module configuration (useful to see all configuration options) (do not edit this file => use the overriding previous file) |
3. "load environment" commands
As a "not metwork" unix user (useless if you are logged as a "mfxxx" unix user as the "metwork environment" is already loaded):
Command | Description |
---|---|
source /opt/metwork-mfbus/share/interactive_profile |
load the mfbus metwork interactive environment |
source /opt/metwork-mfbus/share/profile |
load the mfbus metwork environment (same as above but without fancy stuff about banner, colors and prompt) |
/opt/metwork-mfbus/bin/mfbus_wrapper {YOUR_COMMAND} |
execute the given command in the mfbus metwork environment without changing anything to the current environment |
Note: if you don't have
/opt/metwork-mfbus
symbolic link, use/opt/metwork-mfbus-{BRANCH}
instead.
4. module commands
As mfbus
user:
Command | Description |
---|---|
mfbus.start |
start mfbus services |
mfbus.stop |
stop mfbus services |
mfbus.status |
check mfbus services |
layers |
list installed layers (loaded layers are prefixed by (*) ), layers --help for more details |
layer_load {LAYER_NAME} |
load the given layer (which must be installed), example: layer_load python3_devtools@mfext |
layer_unload {LAYER_NAME} |
unload the given layer (which must be loaded), example: layer_unload python3@mfext |
components |
list installed software components (loaded components are prefixed by (*) ), components --help for more details |
metwork_debug |
debug the current environment (layers, paths, versions...), useful for debugging or bug reporting |
outside {YOUR_COMMAND} |
execute the given command outside the metwork environment without changing anything to the current environment |