[Unit] Description=Small description of the service After=network.target [Service] Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ ExecStart=java -jar __FINALPATH__/app.jar --server.port=__PORT__ >> /var/log/__APP__/__APP__.log 2>&1 [Install] WantedBy=multi-user.target