summaryrefslogtreecommitdiffstats
path: root/init/keywords.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/keywords.h
parentdc57f4d93ad2c8dbf2ea1b031328e12fa2fac401 (diff)
downloadcore-3beec7e55f1b5a840fc8fe0868b84d2238779af6.tar.gz
core-3beec7e55f1b5a840fc8fe0868b84d2238779af6.tar.bz2
core-3beec7e55f1b5a840fc8fe0868b84d2238779af6.zip
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/keywords.h')
-rw-r--r--init/keywords.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/keywords.h b/init/keywords.h
index 97fe50cc8..6625330c1 100644
--- a/init/keywords.h
+++ b/init/keywords.h
@@ -6,6 +6,7 @@ int do_class_start(int nargs, char **args);
int do_class_stop(int nargs, char **args);
int do_class_reset(int nargs, char **args);
int do_domainname(int nargs, char **args);
+int do_enable(int nargs, char **args);
int do_exec(int nargs, char **args);
int do_export(int nargs, char **args);
int do_hostname(int nargs, char **args);
@@ -55,6 +56,7 @@ enum {
KEYWORD(critical, OPTION, 0, 0)
KEYWORD(disabled, OPTION, 0, 0)
KEYWORD(domainname, COMMAND, 1, do_domainname)
+ KEYWORD(enable, COMMAND, 1, do_enable)
KEYWORD(exec, COMMAND, 1, do_exec)
KEYWORD(export, COMMAND, 2, do_export)
KEYWORD(group, OPTION, 0, 0)