mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
* Split seednode systemd service ExecStart command into multiple lines * Add setting in seednode configuration to specify btcnode host/port * Tweak seednode torrc configuration options to improve P2P connectivity * Require bitcoin.service from bisq-seednode.service via systemd binding * Make seednode installer run from master and build bisq from release tag * Seednode must be shutdown using `kill -9` until #3884 is fixed * Fix seednode uninstall script to use correct service names * Disable CircuitBuildTimeout in seednode Tor configuration * Disable seednode torrc advanced configuration options for now
39 lines
1.4 KiB
Desktop File
39 lines
1.4 KiB
Desktop File
# install in /etc/systemd/system/bisq-seednode.service
|
|
|
|
[Unit]
|
|
Description=Bisq Seed Node
|
|
After=bitcoin.service
|
|
Requires=bitcoin.service
|
|
BindsTo=bitcoin.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/default/bisq-seednode.env
|
|
|
|
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}
|
|
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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|