Add 5 second delay when stopping seednode service

This commit is contained in:
wiz 2022-01-13 12:59:16 +09:00 committed by Christoph Atteneder
parent 9da2da3af3
commit d61a560679
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -28,7 +28,7 @@ ExecStart=/bin/sh __BISQ_HOME__/__BISQ_REPO_NAME__/${BISQ_ENTRYPOINT} \
--dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN} \
--dumpStatistics=${BISQ_DUMP_STATISTICS} \
ExecStop=/bin/kill ${MAINPID}
ExecStop=/bin/kill ${MAINPID} ; sleep 5
Restart=on-failure
ExecStartPre=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then mount -t tmpfs none -o size=2000M,uid=bisq,gid=bisq $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"