Skip to content

Instantly share code, notes, and snippets.

@stuart-warren
Created September 14, 2020 15:19
Show Gist options
  • Save stuart-warren/e9ba96ec84b46c6b0234059da804ffe7 to your computer and use it in GitHub Desktop.
Save stuart-warren/e9ba96ec84b46c6b0234059da804ffe7 to your computer and use it in GitHub Desktop.
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