AWS GreenGrass Components - run on device start up

0

Hello,

I have an IoT device which is shutdown overnight due to customer requirements, and is restarted in the morning.

Currently the service used to operate the device is started using a systemd service, this works, but is not the solution we are after.

I am looking at using Greengrass components to deploy the service to the device, and monitor the service (Long lived service which needs to always be running/restart if failed), but I am struggling to find any resources on how/if components run on start up? I know the greengrass.service is run on start up, so I am wondering if i need to set anything in the component recipe? The device also may not have internet access on start up, i.e. it must start the service without an internet connection.

Thanks heaps, Matt

MattW
已提问 4 个月前201 查看次数
1 回答
1
已接受的回答

Hello,

Thanks for your interest in Greengrass. Have you tried this out? Greengrass always starts all components when Greengrass itself is started (which will happen when the device boots unless you do something to change that). There are no configuration options for this; components will always be started immediately.

Cheers,

Michael

AWS
专家
已回答 4 个月前
profile pictureAWS
专家
Greg_B
已审核 4 个月前
  • Thank you for the prompt response, looks like i will go ahead and try some example components on an ec2 instance, thanks again.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则