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
Important
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.
sudo systemctl status greengrass.service
The response looks similar to the following example if the AWS IoT Greengrass Core software is installed as a system service and active.
● greengrass.service - Greengrass Core Loaded: loaded (/etc/systemd/system/greengrass.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2021-02-11 01:33:44 UTC; 4 days ago Main PID: 16107 (sh) CGroup: /system.slice/greengrass.service ├─16107 /bin/sh /greengrass/v2/alts/current/distro/bin/loader └─16111 java -Dlog.store=FILE -Droot=/greengrass/v2 -jar /greengrass/v2/alts/current/distro/lib/Greengrass...
If
systemctl
orgreengrass.service
isn't found, the AWS IoT Greengrass Core software isn't installed as a system service. To run the software, see Run the AWS IoT Greengrass Core software without a 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.
sudo systemctl start greengrass.service
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
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.
-