2019-11-04 18:25:18 +09:00
|
|
|
# install in /etc/systemd/system/bisq-seednode.service
|
|
|
|
|
2019-03-04 14:10:07 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Bisq Seed Node
|
2020-01-04 19:39:56 +09:00
|
|
|
After=bitcoin.service
|
2020-01-29 19:28:12 +09:00
|
|
|
Requires=bitcoin.service
|
|
|
|
BindsTo=bitcoin.service
|
2019-03-04 14:10:07 +01:00
|
|
|
|
|
|
|
[Service]
|
2019-12-20 23:49:37 +09:00
|
|
|
EnvironmentFile=/etc/default/bisq-seednode.env
|
2020-01-29 19:28:12 +09:00
|
|
|
|
|
|
|
ExecStart=__BISQ_HOME__/__BISQ_REPO_NAME__/bisq-seednode \
|
|
|
|
--fullDaoNode=true \
|
|
|
|
--userDataDir=${BISQ_HOME} \
|
|
|
|
--appName=${BISQ_APP_NAME} \
|
|
|
|
--baseCurrencyNetwork=${BISQ_BASE_CURRENCY} \
|
|
|
|
--maxConnections=${BISQ_MAX_CONNECTIONS} \
|
|
|
|
--maxMemory=${BISQ_MAX_MEMORY} \
|
|
|
|
--nodePort=${BISQ_NODE_PORT} \
|
|
|
|
--btcNodes=${BITCOIN_P2P_HOST}:${BITCOIN_P2P_PORT} \
|
|
|
|
--rpcBlockNotificationHost=${BITCOIN_RPC_BLOCKNOTIFY_HOST} \
|
|
|
|
--rpcBlockNotificationPort=${BITCOIN_RPC_BLOCKNOTIFY_PORT} \
|
|
|
|
--rpcHost=${BITCOIN_RPC_HOST} \
|
|
|
|
--rpcPort=${BITCOIN_RPC_PORT} \
|
|
|
|
--rpcUser=${BITCOIN_RPC_USERNAME} \
|
|
|
|
--rpcPassword=${BITCOIN_RPC_PASSWORD} \
|
|
|
|
--dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN} \
|
|
|
|
|
|
|
|
ExecStop=/bin/kill -9 ${MAINPID}
|
2019-03-04 14:10:07 +01:00
|
|
|
Restart=on-failure
|
|
|
|
|
2020-01-05 04:00:57 +09:00
|
|
|
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"
|
|
|
|
|
2019-03-04 14:10:07 +01:00
|
|
|
User=bisq
|
|
|
|
Group=bisq
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|