this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Shut down running instances during install

This prevents forgetting to shut down darling and wondering why
your changes have no effect.

+17
+2
CMakeLists.txt
··· 111 111 InstallSymlink(/Volumes/SystemRoot/usr/lib64 ${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/lib64) 112 112 113 113 InstallSymlink(/Volumes/SystemRoot/usr/share/zoneinfo ${CMAKE_INSTALL_PREFIX}/libexec/darling/usr/share/zoneinfo) 114 + 115 + install(CODE "execute_process(COMMAND bash ${DARLING_TOP_DIRECTORY}/tools/shutdown-user.sh)")
+15
tools/shutdown-user.sh
··· 1 + echo "Seeing if Darling is currently running" 2 + 3 + PID=`pgrep launchd` 4 + 5 + while [[ ! -z $PID ]] 6 + do 7 + THISPID=$(echo $PID | head -n1) 8 + RUNNING_USER=$(ps -o uname= -p $THISPID) 9 + echo "Darling currently running for $RUNNING_USER, shutting it down..." 10 + sudo -u $RUNNING_USER darling shutdown 11 + sleep 2 12 + PID=`pgrep launchd` 13 + done 14 + 15 + echo "No instances running now"