[Unit] Description=ASB Vision After=network-online.target postgresql.service Wants=network-online.target [Service] User=soltex # The configuration file application.properties should be here: # change this to your workspace WorkingDirectory=/home/soltex/AsbCloud #path to executable. #executable is a bash script which calls jar file ExecStart=/home/soltex/AsbCloud/AsbCloudWebApi SuccessExitStatus=0 TimeoutStopSec=20 Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target