Changeset 23029
- Timestamp:
- 02/05/07 14:11:16 (22 months ago)
- Location:
- trunk/launchd/src
- Files:
-
- 4 modified
-
Makefile.am (modified) (1 diff)
-
Makefile.in (modified) (1 diff)
-
SystemStarter.c (modified) (2 diffs)
-
launchctl.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/Makefile.am
r22979 r23029 94 94 mkdir -p $(DESTDIR)/Library/LaunchDaemons 95 95 mkdir -p $(DESTDIR)/Library/LaunchAgents 96 mkdir -p $(DESTDIR)/System/Library/LaunchAgents 96 97 mkdir -p $(DESTDIR)/System/Library/LaunchDaemons 97 mkdir -p $(DESTDIR)/System/Library/LaunchAgents98 cp $(srcdir)/com.apple.SystemStarter.plist $(DESTDIR)/System/Library/LaunchDaemons 98 99 99 100 endif -
trunk/launchd/src/Makefile.in
r22979 r23029 1108 1108 @LIBS_ONLY_FALSE@ mkdir -p $(DESTDIR)/Library/LaunchDaemons 1109 1109 @LIBS_ONLY_FALSE@ mkdir -p $(DESTDIR)/Library/LaunchAgents 1110 @LIBS_ONLY_FALSE@ mkdir -p $(DESTDIR)/System/Library/LaunchAgents 1110 1111 @LIBS_ONLY_FALSE@ mkdir -p $(DESTDIR)/System/Library/LaunchDaemons 1111 @LIBS_ONLY_FALSE@ mkdir -p $(DESTDIR)/System/Library/LaunchAgents1112 @LIBS_ONLY_FALSE@ cp $(srcdir)/com.apple.SystemStarter.plist $(DESTDIR)/System/Library/LaunchDaemons 1112 1113 # Tell versions [3.59,3.63) of GNU make to not export all variables. 1113 1114 # Otherwise a system limit (for SysV at least) may be exceeded. -
trunk/launchd/src/SystemStarter.c
r22638 r23029 23 23 **/ 24 24 25 #include <sys/types.h> 26 #include <sys/stat.h> 27 #include <paths.h> 25 28 #include <unistd.h> 26 29 #include <crt_externs.h> … … 148 151 } 149 152 150 exit(system_starter(anAction, aService)); 153 int ssec = system_starter(anAction, aService); 154 struct stat sb; 155 156 if (anAction == kActionStart && stat("/etc/rc.local", &sb) != -1) { 157 int wstatus; 158 pid_t rclp; 159 160 switch ((rclp = fork())) { 161 case -1: 162 break; 163 case 0: 164 execlp(_PATH_BSHELL, _PATH_BSHELL, "/etc/rc.local", NULL); 165 _exit(EXIT_FAILURE); 166 break; 167 default: 168 waitpid(rclp, &wstatus, 0); 169 break; 170 } 171 } 172 173 exit(ssec); 151 174 } 152 175 -
trunk/launchd/src/launchctl.c
r23028 r23029 1275 1275 _vproc_set_global_on_demand(false); 1276 1276 1277 const char *SystemStarter_tool[] = { "SystemStarter", NULL };1278 assumes(fwexec(SystemStarter_tool, false) != -1);1279 1280 if (path_check("/etc/rc.local")) {1281 const char *rc_local_tool[] = { _PATH_BSHELL, "/etc/rc.local", NULL };1282 assumes(fwexec(rc_local_tool, true) != -1);1283 }1284 1285 1277 return 0; 1286 1278 }

