# /usr/lib/systemd/system/veeam.service [Unit] Description=Veeam Agent for Linux service daemon After=network.target [Service] Environment="PIDFILE=/var/run/veeam.pid" # NOTE: veeam is wrt. security a real nightmare. So make sure, that it does # not execute arbitrary scripts and utilities as root!!! Environment="PATH=/usr/lib/veeam:/usr/bin:/bin:/usr/sbin:/sbin" PIDFile=/var/run/veeam.pid Type=forking ExecStart=/usr/sbin/veeamservice --daemonize --pidfile=${PIDFILE} #ExecStop=/sbin/start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile ${PIDFILE} --name veeamservice TimeoutStopSec=90 KillMode=process [Install] WantedBy=multi-user.target