Lines Matching defs:service
36 * State of a known {@code init} service.
62 /** Request that the init daemon start a named service. */
67 /** Request that the init daemon stop a named service. */
72 /** Request that the init daemon restart a named service. */
78 * Return current state of given service.
80 public static State getState(String service) {
81 final String rawState = SystemProperties.get("init.svc." + service);
91 * Check if given service is {@link State#STOPPED}.
93 public static boolean isStopped(String service) {
94 return State.STOPPED.equals(getState(service));
98 * Check if given service is {@link State#RUNNING}.
100 public static boolean isRunning(String service) {
101 return State.RUNNING.equals(getState(service));
105 * Wait until given service has entered specific state.
107 public static void waitForState(String service, State state, long timeoutMillis)
112 final State currentState = getState(service);
118 throw new TimeoutException("Service " + service + " currently " + currentState
136 for (String service : services) {
137 if (State.STOPPED.equals(getState(service))) {