Skip to content

An option to Background scripts instead of waiting for them. #69

@wakco

Description

@wakco

Is your feature request related to a problem? Please describe.
Currently outset will execute each script in an events folder, in turn, waiting for each script to complete before executing the next script. I'd like a way to change that behaviour on a per script basis.

Describe the solution you'd like
While I'm unsure of how it would go for a Managed Profile supplied script (probably just an option with the script), for installed scripts, have an array in the Config. Profile simply listing the full-paths to all the scripts to background (not wait for completion before starting the next script).

Describe alternatives you've considered
One of the reasons for outset's existence is to reduce the need to create launchd plists for each script, therefore reducing bloat in the Login Items lists, this would help with that, since currently that is the only way to allow scripts to in parallel.

Additional context
Some examples for this feature:

  • I have a login dialog script, that opens over the login-window, this dialog gets updated based on things like network state changes, which requires the script to stay running in a loop, which effectively means any script that might run after it (I'm not doing this, at least not for the login-window context).
  • I'm in the process of setting up an on login activation script, to which I've had to create a LaunchAgent plist for, because I do have other scripts in the login-every folder, and it or they get held up based on the order the scripts execute in, as such the wait time for the activation (of FortiClient ZTNA) often ended up as long if not longer than using a Jamf Policy configured for login (as it is, I've had to put into that script a wait to be sure it can activate, i.e. internet access, so anything else that might slow it down is a problem).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions