I have a Java Application is going to be my Discord Server's bot.
How do I make this application run as a daemon on a Raspberry Pi, it uses the latest version of Raspbian and the Java application runs off a jar file, though it does require an env variable to set its Spring profile.
How can I make the application run as a Deamon, Plus I need it to have commands to stop and start, as I going to hook up a Jenkins Build server to stop the service, and then restart it with the new version it built.