2020-02-07 14:41:35 +01:00
|
|
|
# install in /etc/systemd/system/bisq.service
|
2019-11-04 10:25:18 +01:00
|
|
|
|
2019-03-04 14:10:07 +01:00
|
|
|
[Unit]
|
2020-02-07 14:41:35 +01:00
|
|
|
Description=Bisq Node
|
2024-05-10 23:57:16 +02:00
|
|
|
After=network.target
|
2020-02-07 14:41:35 +01:00
|
|
|
#Requires=bitcoin.service
|
|
|
|
#BindsTo=bitcoin.service
|
2019-03-04 14:10:07 +01:00
|
|
|
|
|
|
|
[Service]
|
2020-02-08 03:59:00 +01:00
|
|
|
SyslogIdentifier=bisq
|
2020-02-07 14:41:35 +01:00
|
|
|
EnvironmentFile=/etc/default/bisq.env
|
2020-01-29 11:28:12 +01:00
|
|
|
|
2024-05-07 06:44:30 +02:00
|
|
|
ExecStart=/bin/bash __BISQ_HOME__/__BISQ_REPO_NAME__/${BISQ_ENTRYPOINT} \
|
2020-02-07 14:41:35 +01:00
|
|
|
--fullDaoNode=${BISQ_DAO_FULLNODE} \
|
2024-09-06 07:59:22 +02:00
|
|
|
--isBmFullNode=${BISQ_DAO_FULLNODE} \
|
2020-01-29 11:28:12 +01:00
|
|
|
--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} \
|
2020-02-07 14:41:35 +01:00
|
|
|
--rpcUser=${BITCOIN_RPC_USER} \
|
|
|
|
--rpcPassword=${BITCOIN_RPC_PASS} \
|
2020-01-29 11:28:12 +01:00
|
|
|
--dumpBlockchainData=${BISQ_DUMP_BLOCKCHAIN} \
|
2020-02-07 14:41:35 +01:00
|
|
|
--dumpStatistics=${BISQ_DUMP_STATISTICS} \
|
2022-06-20 17:38:04 +02:00
|
|
|
--torControlPort=${BISQ_EXTERNAL_TOR_PORT} \
|
2024-05-07 06:45:49 +02:00
|
|
|
--torControlUseSafeCookieAuth=${BISQ_EXTERNAL_TOR_CONTROL_USE_COOKIE} \
|
|
|
|
--torControlCookieFile=${BISQ_EXTERNAL_TOR_CONTROL_COOKIE_FILE} \
|
2020-01-29 11:28:12 +01:00
|
|
|
|
2022-01-13 04:59:16 +01:00
|
|
|
ExecStop=/bin/kill ${MAINPID} ; sleep 5
|
2019-03-04 14:10:07 +01:00
|
|
|
Restart=on-failure
|
|
|
|
|
2024-05-30 22:31:05 +02:00
|
|
|
ExecStartPre=+/bin/bash -c "if [ $BISQ_DUMP_BLOCKCHAIN = true ];then mkdir -p $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json && mount -t tmpfs none -o size=5000M,uid=bisq,gid=bisq $BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY/db/json;else true;fi"
|
2020-01-04 20:00:57 +01:00
|
|
|
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
|