run_init
Run init scripts in the proper SELinux context. tldr-pages
On Linux
Linux
Run init scripts in the proper SELinux context. Typically used to run system service scripts with correct SELinux domains.
Run a script in the init script context
sudo run_init path/to/scriptIdentifyRun a script with arguments
sudo run_init path/to/script startIdentifyRun a script and specify the init script context explicitly
sudo run_init --type context_type path/to/scriptIdentifySimulate running a script, displaying the context that would be used
sudo run_init --dry-run path/to/scriptIdentify