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.
- Make sure your device is connected to the Internet.
- Stop the Greengrass core to launch it manually.
- Remove the existing log files.
- Run Greengrass core.
#> /etc/init.d/greengrass stop
#> rm /greengrass/ggc/var/log/crash.log /greengrass/ggc/var/log/system/*.log
#> /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:
- /greengrass/ggc/var/log/crash.log: This file displays messages generated when the Greengrass core crashes.
- /greengrass/ggc/var/log/system/runtime.log: This file includes messages about which component failed.
- /greengrass/ggc/var/log/system: This directory contains log files for each Greengrass system component.
- /greengrass/ggc/var/log/user: This directory contains log files generated by each Lambda function.