# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Appliction Service
After=network.target
#StartLimitIntervalSec=15,StartLimitBurst=0
ConditionFileIsExecutable=/usr/bin/Vision_APP
[Service]
Type=simple
Environment="QT_QPA_PLATFORM=eglfs"
Environment="XDG_RUNTIME_DIR=/tmp/runtime-root"
Environment="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/MVTec/HALCON-22.05-Progress/lib/x64-linux"
Restart=always
RestartSec=5
TimeoutStartSec=60
WorkingDirectory=/root
#ExecStartPre=/bin/sh -c "source /etc/profile"
ExecStart=/usr/bin/Vision_APP
[Install]
WantedBy=multi-user.target