Permalink
Browse files

systemd service startup configuration and description is added

  • Loading branch information...
Clementvale committed Apr 5, 2018
1 parent dde71a9 commit 35366d04f4529363e121366171edbebc846f9327
Showing with 72 additions and 0 deletions.
  1. +13 −0 deploy/systemd/cli_wallet.service
  2. +48 −0 deploy/systemd/readme.txt
  3. +11 −0 deploy/systemd/witness_node.service
@@ -0,0 +1,13 @@
[Unit]
Description=cli_wallet
Requires=witness_node.service
After=witness_node.service

[Service]
Type=simple
ExecStartPre=/bin/sleep 30
ExecStart=/srv/bubbletone/programs/cli_wallet/cli_wallet --daemon --wallet-file /srv/bubbletone/data/bubbletone-wallet/bubbletone-all.json --chain-id 87727043210d29965f7b24f8ff6a2be38bbc6e9f790382b769677f68ca74ece8 --server-rpc-endpoint=ws://127.0.0.1:7212 -r 127.0.0.1:1227 -H 127.0.0.1:7108
Restart=always

[Install]
WantedBy=multi-user.target
@@ -0,0 +1,48 @@

1.
copy

cli_wallet.service
witness_node.service

into
/lib/systemd/system/

2.
mkdir /srv/bubbletone
mkdir /srv/bubbletone/programs
mkdir /srv/bubbletone/programs/witness_node
mkdir /srv/bubbletone/programs/cli_wallet
mkdir /srv/bubbletone/data
mkdir /srv/bubbletone/data/bubbletone-wallet

3.
copy

witness_node
and
cli_wallet
into

/srv/bubbletone/programs/witness_node
and
/srv/bubbletone/programs/cli_wallet
correspondingly

4.
copy 'bubbletone' blockchain directory containing config.ini into
/srv/bubbletone/data

5.
Add services to autostart and start it:

systemctl enable witness_node
systemctl start witness_node

systemctl enable cli_wallet
systemctl start cli_wallet

6. view logs
sudo journalctl -u witness_node
sudo journalctl -f -u witness_node

@@ -0,0 +1,11 @@
[Unit]
Description=witness_node
After=network.target

[Service]
Type=simple
ExecStart=/srv/bubbletone/programs/witness_node/witness_node --data-dir /srv/bubbletone/data/bubbletone
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit 35366d0

Please sign in to comment.