Revision
22950
Author
zarzycki@apple.com
Date
2006-11-16 10:25:06 -0800 (Thu, 16 Nov 2006)

Log Message

<rdar://problem/4831698> launchd should exec /etc/rc.server during boot

Modified Paths

Diff

Modified: trunk/launchd/src/launchctl.c (22949 => 22950)


--- trunk/launchd/src/launchctl.c	2006-11-15 23:48:19 UTC (rev 22949)
+++ trunk/launchd/src/launchctl.c	2006-11-16 18:25:06 UTC (rev 22950)
@@ -1196,7 +1196,11 @@
 	loopback_setup_ipv4();
 	loopback_setup_ipv6();
 
-	apply_sysctls_from_file("/etc/sysctl-macosxserver.conf");
+	if (path_check("/etc/rc.server")) {
+		const char *rcserver_tool[] = { _PATH_BSHELL, "/etc/rc.server", NULL };
+		assumes(fwexec(rcserver_tool, true) != -1);
+	}
+
 	apply_sysctls_from_file("/etc/sysctl.conf");
 
 	if (path_check("/etc/rc.cdrom")) {