summarylogtreecommitdiffstats
path: root/bsinit.service
diff options
context:
space:
mode:
Diffstat (limited to 'bsinit.service')
-rw-r--r--bsinit.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/bsinit.service b/bsinit.service
new file mode 100644
index 00000000000..6b6acfd9b1a
--- /dev/null
+++ b/bsinit.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Libbitcoin server: initialize database in the configured directory
+Conflicts=bs.service
+
+[Service]
+Type=oneshot
+User=bs
+Group=bs
+ExecStart=/usr/bin/bs -i /etc/bs/bs.cfg
+
+[Install]
+WantedBy=multi-user.target