Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Created March 23, 2022 23:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trodemaster/587f3158639793e8c79c8e62ae06d49c to your computer and use it in GitHub Desktop.
Save trodemaster/587f3158639793e8c79c8e62ae06d49c to your computer and use it in GitHub Desktop.
# dump all the launchd services
launchctl print gui/$UID
# dump details of the service
launchctl print gui/$UID/com.blakegarner.vault
# stop service and unload from launchd
launchctl bootout gui/$UID/com.blakegarner.vault
# start the servcie and load plist from disk
launchctl bootstrap gui/$UID ~/Library/LaunchAgents/com.blakegarner.vault.plist
# disable service leaving process running
launchctl disable gui/$UID/com.blakegarner.vault
# enable service
launchctl enable gui/$UID/com.blakegarner.vault
# kill and then start the service outputting the pid
launchctl kickstart -kp gui/$UID/com.blakegarner.vault
# just kill the service process. Service state ends up funky
launchctl kill 9 gui/$UID/com.blakegarner.vault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment