summaryrefslogtreecommitdiffstats
path: root/toolbox/start.c
blob: 0941e64f4c1b946de54e504af99483aac6499adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#include <string.h>
#include <stdio.h>
#include <stdlib.h>

#include <cutils/properties.h>

int start_main(int argc, char *argv[])
{
    if(argc > 1) {
        property_set("ctl.start", argv[1]);
    } else {
        /* defaults to starting the common services stopped by stop.c */
        property_set("ctl.start", "surfaceflinger");
        property_set("ctl.start", "zygote");
        property_set("ctl.start", "zygote_secondary");
    }

    return 0;
}