Created
March 23, 2022 23:17
-
-
Save trodemaster/587f3158639793e8c79c8e62ae06d49c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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