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
|
2020-01-04 11:39:56 +01:00
|
|
|
After=bitcoin.service
|
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
|
|
|
|
2020-02-07 14:41:35 +01:00
|
|
|
ExecStart=/bin/sh __BISQ_HOME__/__BISQ_REPO_NAME__/${BISQ_ENTRYPOINT} \
|
|
|
|
--fullDaoNode=${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} \
|
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
|
|
|
|
|
2020-05-09 05:30:15 +02:00
|
|
|
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"
|
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
|