github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/client-mac/postinstall (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  # Abort if package install is not happening on the running volume.
     6  [[ $3 != '/' ]] && exit 0
     7  
     8  readonly DAEMON_PLIST=/Library/LaunchDaemons/com.google.code.fleetspeak.plist
     9  
    10  # Restart the Fleetspeak process.
    11  if [[ -f "${DAEMON_PLIST}" ]]; then
    12    launchctl unload "${DAEMON_PLIST}" || true
    13    launchctl load -w "${DAEMON_PLIST}"
    14  fi