[Unit] Description=Komga server After=network.target [Service] Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ ExecStart=/usr/bin/java -jar -Xmx1g app.jar --server.port=__PORT__ --server.servlet.context-path="__PATH__/" Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target