[launchd-changes] [23118] trunk/launchd/src
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 28 15:39:19 PST 2007
Revision: 23118
http://trac.macosforge.org/projects/launchd/changeset/23118
Author: zarzycki at apple.com
Date: 2007-02-28 15:39:18 -0800 (Wed, 28 Feb 2007)
Log Message:
-----------
<rdar://problem/5030392> Delete all code referring to /etc/rc.shutdown
Modified Paths:
--------------
trunk/launchd/src/Makefile.am
trunk/launchd/src/Makefile.in
trunk/launchd/src/SystemStarter.c
trunk/launchd/src/com.apple.SystemStarter.plist
Removed Paths:
-------------
trunk/launchd/src/rc.shutdown
Modified: trunk/launchd/src/Makefile.am
===================================================================
--- trunk/launchd/src/Makefile.am 2007-02-27 22:28:29 UTC (rev 23117)
+++ trunk/launchd/src/Makefile.am 2007-02-28 23:39:18 UTC (rev 23118)
@@ -34,7 +34,7 @@
sbin_PROGRAMS = launchd SystemStarter
libexec_PROGRAMS = launchproxy
-sysconf_DATA = hostconfig rc.common rc.netboot rc.shutdown
+sysconf_DATA = hostconfig rc.common rc.netboot
launchctl_CFLAGS = $(AM_CFLAGS) -I/System/Library/Frameworks/System.framework/PrivateHeaders
launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -weak_library /usr/lib/libedit.dylib
Modified: trunk/launchd/src/Makefile.in
===================================================================
--- trunk/launchd/src/Makefile.in 2007-02-27 22:28:29 UTC (rev 23117)
+++ trunk/launchd/src/Makefile.in 2007-02-28 23:39:18 UTC (rev 23118)
@@ -235,7 +235,7 @@
@LIBS_ONLY_TRUE at liblaunch_profile_a_CFLAGS = -pg $(AM_CFLAGS)
@LIBS_ONLY_TRUE at liblaunch_profile_a_SOURCES = liblaunch.c libvproc.c libbootstrap.c protocol_vprocUser.c
@LIBS_ONLY_FALSE at sbin_SCRIPTS = service
- at LIBS_ONLY_FALSE@sysconf_DATA = hostconfig rc.common rc.netboot rc.shutdown
+ at LIBS_ONLY_FALSE@sysconf_DATA = hostconfig rc.common rc.netboot
@LIBS_ONLY_FALSE at launchctl_CFLAGS = $(AM_CFLAGS) -I/System/Library/Frameworks/System.framework/PrivateHeaders
@LIBS_ONLY_FALSE at launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -weak_library /usr/lib/libedit.dylib
@LIBS_ONLY_FALSE at SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS)
Modified: trunk/launchd/src/SystemStarter.c
===================================================================
--- trunk/launchd/src/SystemStarter.c 2007-02-27 22:28:29 UTC (rev 23117)
+++ trunk/launchd/src/SystemStarter.c 2007-02-28 23:39:18 UTC (rev 23118)
@@ -163,6 +163,12 @@
assert(r != -1);
assert(kev.filter == EVFILT_SIGNAL && kev.ident == SIGTERM);
+ if (stat("/etc/rc.shutdown.local", &sb) != -1) {
+ const char *rc_shutdown_local_cmd[] = { "_PATH_BSHELL", "/etc/rc.shutdown.local", NULL };
+
+ fwexec(rc_shutdown_local_cmd, true);
+ }
+
system_starter(kActionStop, NULL);
exit(EXIT_SUCCESS);
Modified: trunk/launchd/src/com.apple.SystemStarter.plist
===================================================================
--- trunk/launchd/src/com.apple.SystemStarter.plist 2007-02-27 22:28:29 UTC (rev 23117)
+++ trunk/launchd/src/com.apple.SystemStarter.plist 2007-02-28 23:39:18 UTC (rev 23118)
@@ -12,6 +12,8 @@
<dict>
<key>/etc/rc.local</key>
<true/>
+ <key>/etc/rc.shutdown.local</key>
+ <true/>
</dict>
</dict>
<key>QueueDirectories</key>
Deleted: trunk/launchd/src/rc.shutdown
===================================================================
--- trunk/launchd/src/rc.shutdown 2007-02-27 22:28:29 UTC (rev 23117)
+++ trunk/launchd/src/rc.shutdown 2007-02-28 23:39:18 UTC (rev 23118)
@@ -1,8 +0,0 @@
-#!/bin/sh
-# Copyright 1997-2004 Apple Computer, Inc.
-
-. /etc/rc.common
-
-if [ -f /etc/rc.shutdown.local ]; then
- exec sh /etc/rc.shutdown.local
-fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070228/3f76585d/attachment.html
More information about the launchd-changes
mailing list