Procedure to enable/Automatic start of service and start?

We want to set up a procedure to enable/Automatic start of a service and start it. Anyone have a script for that handy?

@carls ,

Please feel free to check this procedure. https://scripts.itarian.com/frontend/web/topic/to-restart-a-service-if-it-is-in-an-error-state-or-stopped