Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30d4d57e authored by Wink Saville's avatar Wink Saville
Browse files

Add SystemService.restart.

This allows easy access to the new SystemProperties ctl.restart
control command.

Change-Id: I3e82710873adff54ef8a0cb53ca13d4dcab2408d
parent 937a6f63
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,4 +28,9 @@ public class SystemService
    public static void stop(String name) {
        SystemProperties.set("ctl.stop", name);
    }

    /** Request that the init daemon restart a named service. */
    public static void restart(String name) {
        SystemProperties.set("ctl.restart", name);
    }
}