Skip to content

Commit 6b188e3

Browse files
committed
adding systemd script to manage otsd
1 parent 12bf477 commit 6b188e3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

contrib/systemd/bitcoind-ready.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#/bin/bash
2+
until /usr/local/bin/bitcoin-cli getblockchaininfo
3+
do
4+
/bin/sleep 3
5+
done

contrib/systemd/otsd.service

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=OpenTimestamps server
3+
After=bitcoind.service
4+
5+
[Service]
6+
User=ots
7+
Group=ots
8+
ExecStartPre=/bin/bash /usr/local/bin/bitcoind-ready.sh
9+
ExecStart=/home/ots/opentimestamps-server/otsd -v
10+
Restart=on-failure
11+
12+
KillSignal=SIGINT
13+
14+
[Install]
15+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)