"launchctl bsexec" is a Leopard thing.
--- CalendarServer/trunk/run 2007-05-08 18:10:10 UTC (rev 1518)
+++ CalendarServer/trunk/run 2007-05-08 20:25:09 UTC (rev 1519)
@@ -145,7 +145,7 @@
fi;
if [ -z "${caldavd_wrapper_command:-}" ]; then
- if [ "$(uname -s)" == "Darwin" ]; then
+ if [ "$(uname -s)" == "Darwin" ] && [ "$(uname -r | cut -d . -f 1)" -ge 9 ]; then
caldavd_wrapper_command="launchctl bsexec /";
else
caldavd_wrapper_command="";