Homebridge, autostart made simple

There have been some questions about how to handle Homebridge, (HB), autostart at power on and restart at failure using Raspberry Pi OS systemd . Please note that, in the later versions, the HB installation handles this !! I have written a post how to manually set it up but now in this post I will present a script which handles it automagically !! Despite this simple set up I recommend using the app " hb-service", which is installed together with "homebridge-config-ui-x" How to install HB is found here !