src.nth.io/

summaryrefslogtreecommitdiff
path: root/btcd/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-04-27 11:17:52 -0500
committerLuke Hoersten <[email protected]>2020-04-27 11:17:52 -0500
commit99575d0d007feb9ba97109be94e7ee5230bb40ce (patch)
treededb43d697647753ee76a554c5d8edcbb0731e87 /btcd/templates
Initial commit of btcd and lnd roles.
Diffstat (limited to 'btcd/templates')
-rw-r--r--btcd/templates/btcd.conf.j28
-rw-r--r--btcd/templates/btcd.service.j217
2 files changed, 25 insertions, 0 deletions
diff --git a/btcd/templates/btcd.conf.j2 b/btcd/templates/btcd.conf.j2
new file mode 100644
index 0000000..d4c8c5a
--- /dev/null
+++ b/btcd/templates/btcd.conf.j2
@@ -0,0 +1,8 @@
+[Application Options]
+datadir={{btcd_data_dir}}
+logdir={{btcd_log_dir}}
+
+rpcuser={{btcd_rpc_user}}
+rpcpass={{btcd_rpc_pass}}
+
+txindex={{btcd_enable_txindex}}
diff --git a/btcd/templates/btcd.service.j2 b/btcd/templates/btcd.service.j2
new file mode 100644
index 0000000..06f8236
--- /dev/null
+++ b/btcd/templates/btcd.service.j2
@@ -0,0 +1,17 @@
+[Unit]
+Description=btcd
+After=network.target
+
+[Service]
+ExecStart=/usr/local/bin/btcd
+User={{btcd_user}}
+Restart=on-failure
+
+PrivateTmp=true
+ProtectSystem=full
+NoNewPrivileges=true
+PrivateDevices=true
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target