How to enable open at startup for appdaemon in freebsd

Hi, I’m running HA in Freenas jail that is actually a Freebsd paravirtualisation. I can’t figure out how I can enable autostart in rc.d. I run the Appdaemon in a python venv with a dedicated user. Can someone know how to create an Appdaemon startup script? Thanks.