blob: 460f3776d6021f5fcb356230f9bd118d5fc8ad81 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001#include <stdio.h>
2#include <string.h>
3
4#include <cutils/properties.h>
5
6int stop_main(int argc, char *argv[])
7{
8 char buf[1024];
9
10 if(argc > 1) {
11 property_set("ctl.stop", argv[1]);
12 } else{
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080013 /* defaults to stopping the common services */
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080014 property_set("ctl.stop", "zygote");
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080015 property_set("ctl.stop", "surfaceflinger");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080016 }
17
18 return 0;
19}