6
0
Fork 0
This repository has been archived on 2022-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
cdist-recycledcloud/type/__prometheus_veeam_exporter/files/prometheus-veeam-exporter.s...

18 lines
360 B
Bash
Executable File

#!/bin/sh
BACKUPDIR=$(cat "${__object:?}/parameter/repos-dir")
cat << EOF
[Unit]
Description=e-Durable's VEEAM upload date exporter
After=network.target
[Service]
Type=simple
User=veeam
ExecStart=/opt/prometheus-veeam-exporter/venv/bin/python /opt/prometheus-veeam-exporter/prometheus-veeam-exporter ${BACKUPDIR:?}
[Install]
WantedBy=multi-user.target
EOF