autostart

The autostart command enables and disables autostart for components. Components that have autostart enabled restart automatically after their hosts are rebooted.

Note: autostart doesn't restart components that crashed or were stopped by bdd-admin before a reboot.
To enable or disable autostart, run the following from the Admin Server:
./bdd-admin.sh autostart <operation> [option <arg>]

autostart requires one of the following operations.

Operation Description
on Enables autostart for the specified component(s).
off Disables autostart for the specified component(s).
status Returns the status of autostart for the specified component(s).

autostart also supports the following options.

Option Description
-c, --component <component(s)> A comma-separated list of the components to run on:
  • agent: Dgraph HDFS Agent
  • dgraph: Dgraph
  • bddServer: Studio and Dgraph Gateway
  • transform: Transform Service
  • clustering: Clustering Service (if enabled)
  • wm: Workflow Manager Service
-n, --node <hostname(s)> A comma-separated list of the nodes to run on. Each must be defined in $BDD_HOME/BDD_manager/conf/bdd.conf.

If no options are specified, the script runs on all supported components.

Examples

The following command enables autostart for all supported components:
./bdd-admin.sh autostart on
The following command returns the status of autostart for the HDFS Agent running on the web009.us.example.com node:
./bdd-admin.sh autostart status -c agent -n web009.us.example.com