[program:restapi]
directory={{ rest_app_home_dir }}
command={{ service_home_dir }}/.sdkman/candidates/java/{{ rest_interface_java_version }}/bin/java -Xmx1024m -Dgrails.env=prod -Dlogging.level.root=ERROR -Dserver.port={{ domino_vagrant_rest_api_port_forwards[0].guest }} -Dspring.config.location=classpath:application.yml,optional:file:{{ rest_app_home_dir }}{{ rest_config_file }} -jar {{ rest_app_home_dir }}/bin/{{ rest_interface_jar }}
autostart=true
autorestart=true
stdout_logfile=/var/log/restapi.log
stderr_logfile=/var/log/restapi_err.log
user={{ service_user }}
environment=JAVA_HOME="{{ service_home_dir }}/.sdkman/candidates/java/current",
             GRADLE_HOME="{{ service_home_dir }}/.sdkman/candidates/gradle/current",
             MAVEN_HOME="{{ service_home_dir }}/.sdkman/candidates/maven/current",
             SDKMAN_CANDIDATES_DIR="{{ service_home_dir }}/.sdkman/candidates",
             SDKMAN_VERSION="5.16.0",
             SDKMAN_DIR="{{ service_home_dir }}/.sdkman",
             SDKMAN_CANDIDATES_API="https://api.sdkman.io/2",
             SDKMAN_PLATFORM="linuxx64",
             SPRING_PROFILES_ACTIVE="production",
             SPRING_CONFIG_ADDITIONAL_LOCATION"=file://{{ rest_app_home_dir }}/config/",
{% if domino_install_dir is defined %}
             LD_LIBRARY_PATH="{{ domino_install_dir }}/",
{% endif %}
             HOME="{{ service_home_dir }}",
             PATH="{{ service_home_dir }}/.sdkman/candidates/maven/current/bin:{{ service_home_dir }}/.sdkman/candidates/java/current/bin:{{ service_home_dir }}/.sdkman/candidates/gradle/current/bin:/usr/local/bin:/usr/bin:/bin"