Closed 1000TurquoisePogs closed 2 months ago
Here is a test I did to prove you can just run configmgr scripts directly if you have the right env vars.
How to test this design? You can just have your ZWESLSTC job defined with a YAML that has a single component enabled like "zss" and see if zss starts up the same as it did before this change.
Completed for v2.17.0
As we move towards v3 and fixing bugs such that we could be configmgr-only and get rid of unnecessary use of shell, I notice that in our process tree, the launcher calls zwe which calls configmgr. If we know the env vars zwe will pass to configmgr, we can call configmgr directly to eliminate having it wrapped within a shell script.
The arrow in this screenshot is pointing to the shell process that could be cut out of the overhead.
The 4th element in the list can also be eliminated by enhancements in the JS scripting, elsewhere...
Below is a diff of unfinished work that should guide us to such a solution.