Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created September 14, 2020 15:19
Embed
What would you like to do?
Example AWS IOT Greengrass Systemd unit files
[Unit]
Description=Greengrass OTA Daemon
[Service]
Environment=GG_BASE_DIR=/greengrass
Type=forking
Restart=on-failure
RestartSec=5
ExecStart=${GG_BASE_DIR}/ota/ota_agent/ggc-ota
[Install]
WantedBy=multi-user.target
[Unit]
Description=Greengrass Daemon
[Service]
Environment=GG_BASE_DIR=/greengrass
Type=forking
PIDFile=/var/run/greengrassd.pid
Restart=on-failure
RestartSec=5
ExecStart=${GG_BASE_DIR}/ggc/core/greengrassd start
ExecReload=${GG_BASE_DIR}/ggc/core/greengrassd restart
ExecStop=${GG_BASE_DIR}/ggc/core/greengrassd stop
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment