Created
September 14, 2020 15:19
-
-
Save stuart-warren/e9ba96ec84b46c6b0234059da804ffe7 to your computer and use it in GitHub Desktop.
Example AWS IOT Greengrass Systemd unit files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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