# /etc/systemd/system/camelsoft-website-api.service # Lead API for camel-soft.com. Listens on 127.0.0.1:8090 (nginx proxies /api/). [Unit] Description=CAMELSOFT website lead API After=network.target postgresql.service Wants=postgresql.service [Service] Type=simple User=jenkins Group=jenkins EnvironmentFile=/opt/camelsoft-website-api/api.env ExecStart=/usr/bin/java -XX:MaxRAMPercentage=50 -jar /opt/camelsoft-website-api/app.jar ExecStop=/bin/kill -15 $MAINPID SuccessExitStatus=143 Restart=on-failure RestartSec=10 StandardOutput=append:/var/log/camelsoft-website-api/app.log StandardError=append:/var/log/camelsoft-website-api/app.log [Install] WantedBy=multi-user.target