Run the AWS IoT Greengrass Core software
After you install the AWS IoT Greengrass Core software, run it to connect your device to AWS IoT Greengrass.
When you install the AWS IoT Greengrass Core software, you can specify whether to install it as a system
service with systemd
On Windows core devices, you must set up the AWS IoT Greengrass Core software as a system service.
Topics
Check if the AWS IoT Greengrass Core software runs as a system service
When you install the AWS IoT Greengrass Core software, you can specify the --setup-system-service
true
argument to install the AWS IoT Greengrass Core software as a system service. Linux devices
require the systemd
Successfully set up Nucleus as a system service
If you previously installed the AWS IoT Greengrass Core software and don't have the installer output, you can check if the software installed as a system service.
To check if the AWS IoT Greengrass Core software is installed as a system service
-
Run the following command to check the status of the Greengrass system service.
Run the AWS IoT Greengrass Core software as a system service
If the AWS IoT Greengrass Core software is installed as a system service, you can use the system service manager to start, stop, and manage the software. For more information, see Configure the Greengrass nucleus as a system service.
To run the AWS IoT Greengrass Core software
-
Run the following command to start the AWS IoT Greengrass Core software.
Run the AWS IoT Greengrass Core software without a system service
On Linux core devices, if the AWS IoT Greengrass Core software isn't installed as a system service, you can run the software's loader script to run the software.
To run the AWS IoT Greengrass Core software without a system service
-
Run the following command to start the AWS IoT Greengrass Core software. If you run this command in a terminal, you must keep the terminal session open to keep the AWS IoT Greengrass Core software running.
-
Replace
/greengrass/v2
orC:\greengrass\v2
with the Greengrass root folder that you use.
sudo
/greengrass/v2
/alts/current/distro/bin/loaderThe software prints the following message if it launches successfully.
Launched Nucleus successfully.
-