Skip to content

Commit

Permalink
Modify seednode service script to mount tmpfs for BSQ data JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Jan 4, 2020
1 parent 9f67622 commit 2d11a9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions seednode/bisq-seednode.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ ExecStart=__BISQ_HOME__/__BISQ_REPO_NAME__/bisq-seednode --appName=${BISQ_APP_NA
ExecStop=/bin/kill -TERM ${MAINPID}
Restart=on-failure

ExecStartPre=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then mount -t tmpfs none -o size=812M,uid=bisq,gid=bisq $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"
ExecStopPost=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then umount $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"

User=bisq
Group=bisq

Expand Down

0 comments on commit 2d11a9e

Please sign in to comment.