1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[Unit] Description="Prometheus libvirt exporter" Requires=network-online.target After=network-online.target [Service] Restart=on-failure ExecStart=/usr/bin/prometheus-libvirt-exporter ExecReload=/bin/kill -HUP $MAINPID NoNewPrivileges=true ProtectHome=read-only ProtectSystem=strict [Install] WantedBy=multi-user.target