Hi All,
I have a launch Daemon that calls a custom trigger in JAMF which runs a script.
The bulk of the script runs fine but there is a section to clean up the existing LaunchDaemon which isn't working as expected. It's meant to bootout the launchdaemon and delete it. It manages to bootout the LaunchDaemon but then the whole script just stops running after this step and there is no recon to JAMF or anything it's like the whole process is just killed once the LaunchDaemon is booted out.
If I open terminal and run a "sudo jamf policy -event TRIGGER" then the whole script runs exactly as its meant to.
I'm baffled and could do with some help if anyone has come across a similar issue?