Metabase still runs when command "java -jar metabase.jar" is turn off

Sometimes the command "java -jar metabase.jar" is turn off due to rebooting the computer. Is there any way to disable the command and metabase still runs?

Create a service. I use NSSM to create Windows services (there's a post on here somewhere).
Similar for linux, but more of a faff (normal for Linux).
Mac, I've no idea.