bitcoind-prometheus-exporter/templates/bitcoind-prometheus-exporter.service.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 12 Feb 2024 17:29:25 -0600
changeset 33 8ef7fcebf4b1
parent 9 ddf84e986362
permissions -rw-r--r--
Version updates
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
[Unit]
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
Description=Bitcoind Prometheus Exporter
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
Wants=bitcoind.service
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
After=bitcoind.service
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
[Service]
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
ExecStart=/usr/local/bin/bitcoind-prometheus-exporter.py
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
User=prometheus
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
Environment="BITCOIN_CONF_PATH={{bitcoind_prometheus_exporter_conf}}"
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
PrivateTmp=true
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
ProtectSystem=full
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
NoNewPrivileges=true
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
PrivateDevices=true
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
MemoryDenyWriteExecute=true
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
[Install]
ddf84e986362 Added bitcoind-prometheus-exporter role.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
WantedBy=multi-user.target