From 2d11a9e0f7df0f0c486859c74594d34a7424574a Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 5 Jan 2020 04:00:57 +0900 Subject: [PATCH] Modify seednode service script to mount tmpfs for BSQ data JSON files --- seednode/bisq-seednode.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seednode/bisq-seednode.service b/seednode/bisq-seednode.service index 835349264ee..c328f27d3b6 100644 --- a/seednode/bisq-seednode.service +++ b/seednode/bisq-seednode.service @@ -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