Run the Amazon IoT Greengrass Core software
After you install the Amazon IoT Greengrass Core software, run it to connect your device to Amazon IoT Greengrass.
When you install the Amazon IoT Greengrass Core software, you can specify whether to install it as a system
service with systemd
Important
On Windows core devices, you must set up the Amazon IoT Greengrass Core software as a system service.
Topics
Check if the Amazon IoT Greengrass Core software runs as a system service
When you install the Amazon IoT Greengrass Core software, you can specify the --setup-system-service
true
argument to install the Amazon 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 Amazon 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 Amazon 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 Amazon IoT Greengrass Core software as a system service
If the Amazon 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 Amazon IoT Greengrass Core software
-
Run the following command to start the Amazon IoT Greengrass Core software.
Run the Amazon IoT Greengrass Core software without a system service
On Linux core devices, if the Amazon 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 Amazon IoT Greengrass Core software without a system service
-
Run the following command to start the Amazon IoT Greengrass Core software. If you run this command in a terminal, you must keep the terminal session open to keep the Amazon IoT Greengrass Core software running.
-
Replace
or/greengrass/v2
C:\greengrass\v2
with the Greengrass root folder that you use.
sudo
/alts/current/distro/bin/loader/greengrass/v2
The software prints the following message if it launches successfully.
Launched Nucleus successfully.
-