blob: ed9a293334deafc2fc48b277b9c67e4216fe20ab [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{
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08008 if(argc > 1) {
9 property_set("ctl.stop", argv[1]);
10 } else{
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080011 /* defaults to stopping the common services */
Narayan Kamath22e22ac2014-05-09 17:56:33 +010012 property_set("ctl.stop", "zygote_secondary");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080013 property_set("ctl.stop", "zygote");
Brad Fitzpatrickd8ed0912011-03-04 15:38:40 -080014 property_set("ctl.stop", "surfaceflinger");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080015 }
16
17 return 0;
18}