Set openfire as an ubuntu 16 service

Hello,

I have installed OpenFire from tar.gz (not the deb package). Now I start openfire manually using “/opt/openfire/bin/openfire start” command.

How can I set it as a service (that I can start,stop, status using systemctl)?

Thanks.