[Unit] Description=Small description of the service After=network.target [Service] Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/gradlew ofbiz ExecStop=__FINALPATH__/gradlew "ofbiz --shutdown" StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit [Install] WantedBy=multi-user.target