Skip to content

Instantly share code, notes, and snippets.

@AdamGagorik
Created June 22, 2023 13:19
Show Gist options
  • Save AdamGagorik/8a998469fdb34198f876e95b7a05fff7 to your computer and use it in GitHub Desktop.
Save AdamGagorik/8a998469fdb34198f876e95b7a05fff7 to your computer and use it in GitHub Desktop.
#!/bin/bash
function usage() {
echo "usage: $0 start|stop"
}
if [[ $# -ne 1 ]] || [[ -z $1 ]]; then
usage
exit -1
fi
if [[ "x$1" == "xstart" ]]; then
echo "start"
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa*
else
if [[ "x$1" == "xstop" ]]; then
echo "stop"
launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa*
else
usage
exit -1
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment