src.nth.io/

summaryrefslogtreecommitdiff
path: root/btcd/templates
diff options
context:
space:
mode:
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