diff options
author | JP Abgrall <jpa@google.com> | 2014-05-02 21:14:29 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2014-05-03 00:14:59 -0700 |
commit | 3beec7e55f1b5a840fc8fe0868b84d2238779af6 (patch) | |
tree | dffb2159f4670268e917b6356e50260702e8a364 /init/init.h | |
parent | dc57f4d93ad2c8dbf2ea1b031328e12fa2fac401 (diff) | |
download | system_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.h | 1 |
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 */ |