code: private void executeInitScript() {
      if (initScript != null && initScript.exists()) {
        try {
          Runtime run = Runtime.getRuntime();
          Process proc = run.exec(new String[] {
              "/bin/bash", "-c", initScript.getAbsolutePath()
          });
          BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
          String line;
  
          logInfo("Output of running script is");
          while ((line = br.readLine()) != null) {
            logInfo(line);
          }
          proc.waitFor(); // Wait for the process to finish.
          logInfo("Script executed successfully %s", initScript.getAbsolutePath());
        } catch (IOException e) {
          logDebug(debug, "Error executing script for path: %s", initScript.getAbsolutePath());
          e.printStackTrace(System.out);
        } catch (InterruptedException e) {
          logDebug(debug, "Script execution interrupted for path: %s", initScript.getAbsolutePath());
          e.printStackTrace(System.out);
        }
      }
    }
docs: Execute the script file specified in param --init-script