summaryrefslogtreecommitdiffstats
path: root/init/init.h
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-05-02 21:14:29 -0700
committerJP Abgrall <jpa@google.com>2014-05-03 00:14:59 -0700
commit3beec7e55f1b5a840fc8fe0868b84d2238779af6 (patch)
treedffb2159f4670268e917b6356e50260702e8a364 /init/init.h
parentdc57f4d93ad2c8dbf2ea1b031328e12fa2fac401 (diff)
downloadsystem_core-3beec7e55f1b5a840fc8fe0868b84d2238779af6.zip
system_core-3beec7e55f1b5a840fc8fe0868b84d2238779af6.tar.gz
system_core-3beec7e55f1b5a840fc8fe0868b84d2238779af6.tar.bz2
init: add 'enable <service>' to negate "service <service>... disabled"
enable <servicename> Turns a disabled service into an enabled one as if the service did not specify disabled in the rc file. It will also start the service if needed. Bug: 14472973 Change-Id: Id0b49cc687a2bc74f6f92e066c617724cc94908d Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'init/init.h')
-rw-r--r--init/init.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init.h b/init/init.h
index 736b75b..c241912 100644
--- a/init/init.h
+++ b/init/init.h
@@ -74,6 +74,7 @@ struct svcenvinfo {
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 SVC_RESTART 0x100 /* Use to safely restart (stop, wait, start) a service */
+#define SVC_DISABLED_START 0x200 /* a start was requested but it was disabled at the time */
#define NR_SVC_SUPP_GIDS 12 /* twelve supplementary groups */