Home | History | Annotate | Download | only in os

Lines Matching refs:service

34      * State of a known {@code init} service.
60 /** Request that the init daemon start a named service. */
65 /** Request that the init daemon stop a named service. */
70 /** Request that the init daemon restart a named service. */
76 * Return current state of given service.
78 public static State getState(String service) {
79 final String rawState = SystemProperties.get("init.svc." + service);
89 * Check if given service is {@link State#STOPPED}.
91 public static boolean isStopped(String service) {
92 return State.STOPPED.equals(getState(service));
96 * Check if given service is {@link State#RUNNING}.
98 public static boolean isRunning(String service) {
99 return State.RUNNING.equals(getState(service));
103 * Wait until given service has entered specific state.
105 public static void waitForState(String service, State state, long timeoutMillis)
110 final State currentState = getState(service);
116 throw new TimeoutException("Service " + service + " currently " + currentState
134 for (String service : services) {
135 if (State.STOPPED.equals(getState(service))) {