bitcoind-prometheus-exporter/templates/bitcoind-prometheus-exporter.service.j2
changeset 9 ddf84e986362
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bitcoind-prometheus-exporter/templates/bitcoind-prometheus-exporter.service.j2	Sat May 16 17:59:15 2020 -0500
@@ -0,0 +1,18 @@
+[Unit]
+Description=Bitcoind Prometheus Exporter
+Wants=bitcoind.service
+After=bitcoind.service
+
+[Service]
+ExecStart=/usr/local/bin/bitcoind-prometheus-exporter.py
+User=prometheus
+Environment="BITCOIN_CONF_PATH={{bitcoind_prometheus_exporter_conf}}"
+
+PrivateTmp=true
+ProtectSystem=full
+NoNewPrivileges=true
+PrivateDevices=true
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target