Skip to content

Instantly share code, notes, and snippets.

@kim4apple
Created June 20, 2019 12:18
Show Gist options
  • Save kim4apple/6be5a029e28426a51d44c80e9ce427ab to your computer and use it in GitHub Desktop.
Save kim4apple/6be5a029e28426a51d44c80e9ce427ab to your computer and use it in GitHub Desktop.
Mac Server.app Fixes
# Even though device management is disabled in Server.app,
# the processes still run. Which the only issue with this is
# it causes extremely slow shutdown times. So here we disable this shit
sudo launchctl stop com.apple.DeviceManagement.postgres;
sudo launchctl remove com.apple.DeviceManagement.postgres;
sudo launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.DeviceManagement.postgres.plist
# Same goes for calendar server
sudo launchctl stop org.calendarserver.agent;
sudo launchctl remove org.calendarserver.agent;
sudo launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/org.calendarserver.agent.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment