blob: 6552c7cb6896eb378f034db5e9c3c7a1ba003ac6 [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 */
Narayan Kamath22e22ac2014-05-09 17:56:33 +010014 property_set("ctl.stop", "zygote_secondary");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080015 property_set("ctl.stop", "zygote");
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080016 property_set("ctl.stop", "surfaceflinger");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080017 }
18
19 return 0;
20}