run_init
linux
Run init scripts in the proper SELinux context. Typically used to run system service scripts with correct SELinux domains. See also: `runcon`, `semanage`.
More info →Options (2)
-t, --typebooleanRun a script and specify the init script context explicitly
Example:
sudo run_init {{[-t|--type]}} {{context_type}} {{path/to/script}}-n, --dry-runbooleanDisplay the context that would be used without running the script
Example:
sudo run_init {{[-n|--dry-run]}} {{path/to/script}}Examples (4)
Run a script and specify the init script context explicitly
made by @shridhargupta | data from tldr-pages