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