[Unit] Description=Prometheus exporter for deconz After=network-online.target Wants=network-online.target systemd-networkd-wait-online.service StartLimitIntervalSec=14400 StartLimitBurst=10 [Service] User=j Group=j WorkingDirectory=/home/j/src/deconz-exporter ExecStart=cargo run --release -- --url http://nyx.jabid.in:4501 --username 381412B455 # Do not allow the process to be restarted in a tight loop. If the # process fails to start, something critical needs to be fixed. Restart=on-abnormal # Use graceful shutdown with a reasonable timeout KillMode=mixed KillSignal=SIGQUIT TimeoutStopSec=5s LimitNOFILE=1048576 LimitNPROC=512 [Install] WantedBy=multi-user.target