Closed AdrienAdB closed 2 months ago
@AdrienAdB
Hello, thank you for reporting the issue and for your interest in the Edge Product.
Could you please check this file? https://github.com/thingsboard/thingsboard-edge/blob/master/packaging/java/scripts/control/template.service
I believe it contains what you are looking for. Your pull request would be greatly appreciated!
Thanks @volodymyr-babak, Here is the pull request: https://github.com/thingsboard/thingsboard-edge/pull/107
@AdrienAdB
Thank you for your pull request. It has been merged successfully. I've made a couple of adjustments: I changed the default RestartSec to 30 seconds and added some additional comments for clarity. Everything else remains as it was originally.
Description
Not all reboot will be affected, but we realized tb-edge was not able to start time to time. Seems postgresql or network wasn't ready when systemd initialized tb-edge.service
Extract from /var/log/tb-edge/tb-edge.log
We could fix issue by adding "network.target" and "postgresql.service" in tb-edge.service file However, it is being erased on upgrades.
cat /etc/systemd/system/multi-user.target.wants/tb-edge.service
Question
Environment