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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南