blob: 5e3ce3c8c924957f915176e413251c9c2d37ddba [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");
Sreeram Ramachandran018c6a52014-07-19 00:47:59 -070015 property_set("ctl.stop", "netd");
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080016 }
17
18 return 0;
19}