blob: 6c8a3f2b0311cebe23475cd14ced0797cc65c161 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001
2#include <string.h>
3#include <stdio.h>
4#include <stdlib.h>
5
6#include <cutils/properties.h>
7
8int start_main(int argc, char *argv[])
9{
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080010 if(argc > 1) {
11 property_set("ctl.start", argv[1]);
12 } else {
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080013 /* defaults to starting the common services stopped by stop.c */
Sreeram Ramachandran435fe9b2014-07-19 00:47:59 -070014 property_set("ctl.start", "netd");
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080015 property_set("ctl.start", "surfaceflinger");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080016 property_set("ctl.start", "zygote");
Narayan Kamath22e22ac2014-05-09 17:56:33 +010017 property_set("ctl.start", "zygote_secondary");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080018 }
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080019
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080020 return 0;
21}