We have an inhouse application to automate some of the network parameters, however we need to occasionally stop the software from functioning. Normally this would be done using launchctl to unload the LaunchDaemon's which the software uses.
I've created a menu bar application which gives two options, one to start and the other to stop this software, but I am having issues running scripts with administrator privileges.
Is there a way to use the launchctl command within swift to load and unload the daemons, and in doing so when the "stop" button is pressed, to prompt for user password?
Selecting any option will automatically load the page