issues
search
SecondSonConsulting
/
Baseline
An MDM agnostic zero touch solution for macOS
MIT License
192
stars
22
forks
source link
Refactor and Optimize Launch Daemon Scripts
#26
Closed
copyleftdev
closed
8 months ago
copyleftdev
commented
11 months ago
Added a script for loading a launch daemon via launchctl.
Created a function exit_with_error for standardized error messaging and exit.
Checked if the launch daemon successfully bootstraps.
Checked if the launch daemon is running after the bootstrap.
Added a script to check if a specific launch daemon is running.
Created a function
exit_with_error
for standardized error handling.
If the daemon is running, the script attempts to unload it using
launchctl bootout
.
Removed the corresponding plist file after unloading the daemon.
exit_with_error
for standardized error handling.launchctl bootout
.