5. Run Greengrass core in your device

The Greengrass core software is installed inside the /greengrass directory of your device. The core is automatically launched at boot if everything is configured properly.

  1. Make sure your device is connected to the Internet.
  2. Stop the Greengrass core to launch it manually.
  3. #> /etc/init.d/greengrass stop
  4. Remove the existing log files.
  5. #> rm /greengrass/ggc/var/log/crash.log /greengrass/ggc/var/log/system/*.log
  6. Run Greengrass core.
  7. #> /etc/init.d/greengrass start

You will see the following output:

Setting up greengrass daemon
Validating execution environment
Found cgroup subsystem: cpuset
Found cgroup subsystem: cpu
Found cgroup subsystem: cpuacct
Found cgroup subsystem: blkio
Found cgroup subsystem: memory
Found cgroup subsystem: devices
Found cgroup subsystem: freezer
Found cgroup subsystem: perf_event

Starting greengrass daemon
Greengrass successfully started with PID: 1405

You configured the logs to be stored in the file system. To check: