From a286480f56012abdb4ef4ddab1c19a5c2316b7b8 Mon Sep 17 00:00:00 2001 From: Ken Sumrall Date: Wed, 26 Oct 2011 16:56:00 -0700 Subject: Fix the class_reset command The class_reset command used to reset services that had been set to "disabled" in the init.rc file to a non-disabled state. Now, if the service was originally set to "disabled", have the reset command set it back to disabled. Otherwise, set it to the "reset" state as it currently does. Change-Id: I0c10582e46a8e443d4748d9d893ae762b19b653a --- init/init.h | 1 + 1 file changed, 1 insertion(+) (limited to 'init/init.h') diff --git a/init/init.h b/init/init.h index 2d98c7cd7..a91d9d4b5 100644 --- a/init/init.h +++ b/init/init.h @@ -71,6 +71,7 @@ struct svcenvinfo { #define SVC_CRITICAL 0x20 /* will reboot into recovery if keeps crashing */ #define SVC_RESET 0x40 /* Use when stopping a process, but not disabling so it can be restarted with its class */ +#define SVC_RC_DISABLED 0x80 /* Remember if the disabled flag was set in the rc script */ #define NR_SVC_SUPP_GIDS 12 /* twelve supplementary groups */ -- cgit v1.2.3