The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | |
| 2 | #include <string.h> |
| 3 | #include <stdio.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | #include <cutils/properties.h> |
| 7 | |
| 8 | int start_main(int argc, char *argv[]) |
| 9 | { |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 10 | if(argc > 1) { |
| 11 | property_set("ctl.start", argv[1]); |
| 12 | } else { |
Brad Fitzpatrick | d8ed091 | 2011-03-04 15:38:40 -0800 | [diff] [blame] | 13 | /* defaults to starting the common services stopped by stop.c */ |
Sreeram Ramachandran | 435fe9b | 2014-07-19 00:47:59 -0700 | [diff] [blame] | 14 | property_set("ctl.start", "netd"); |
Brad Fitzpatrick | d8ed091 | 2011-03-04 15:38:40 -0800 | [diff] [blame] | 15 | property_set("ctl.start", "surfaceflinger"); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 16 | property_set("ctl.start", "zygote"); |
Narayan Kamath | 22e22ac | 2014-05-09 17:56:33 +0100 | [diff] [blame] | 17 | property_set("ctl.start", "zygote_secondary"); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 18 | } |
Brad Fitzpatrick | d8ed091 | 2011-03-04 15:38:40 -0800 | [diff] [blame] | 19 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 20 | return 0; |
| 21 | } |