diff -r f63f13da91c0 -r 1b08af362a30 src/jdk.jpackager/macosx/classes/jdk/jpackager/internal/resources/mac/preinstall.template --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jdk.jpackager/macosx/classes/jdk/jpackager/internal/resources/mac/preinstall.template Mon Nov 05 17:32:00 2018 -0500 @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +set -e +if launchctl list "DEPLOY_DAEMON_IDENTIFIER" &> /dev/null; then + launchctl unload "/Library/LaunchDaemons/DEPLOY_LAUNCHD_PLIST_FILE" +fi + +exit 0