Show Contents

# 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.

    #> /etc/init.d/greengrass stop

3. Remove the existing log files.

    #> rm /greengrass/ggc/var/log/crash.log /greengrass/ggc/var/log/system/*.log

4. Run Greengrass core.

    #> /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.

© 2018 Digi International Inc. All rights reserved.
5. Run Greengrass core in your device updated on 22 January 2018 02:43:38 PM