Merge pull request #2032 from Emzy/ops/fix-elements-service
Fix service name to elements and add elements testnet for prod install
This commit is contained in:
commit
bdd3af6b6a
@ -1285,7 +1285,25 @@ if [ "${ELEMENTS_LIQUID_ENABLE}" = ON ];then
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
Debian)
|
Debian)
|
||||||
osSudo "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 "${MEMPOOL_HOME}/${MEMPOOL_REPO_NAME}/production/linux/liquid.service" "${DEBIAN_SERVICE_HOME}"
|
osSudo "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 "${MEMPOOL_HOME}/${MEMPOOL_REPO_NAME}/production/linux/elements-liquid.service" "${DEBIAN_SERVICE_HOME}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Bitcoin instance for Liquid Testnet #
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
if [ "${ELEMENTS_LIQUID_ENABLE}" = ON ];then
|
||||||
|
echo "[*] Installing Bitcoin Liquid service"
|
||||||
|
case $OS in
|
||||||
|
|
||||||
|
FreeBSD)
|
||||||
|
echo "[*] FIXME: Bitcoin Liquid service must be installed manually on FreeBSD"
|
||||||
|
;;
|
||||||
|
|
||||||
|
Debian)
|
||||||
|
osSudo "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 "${MEMPOOL_HOME}/${MEMPOOL_REPO_NAME}/production/linux/elements-liquidtestnet.service" "${DEBIAN_SERVICE_HOME}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@ -1568,7 +1586,10 @@ case $OS in
|
|||||||
osSudo "${ROOT_USER}" systemctl enable bisq.service
|
osSudo "${ROOT_USER}" systemctl enable bisq.service
|
||||||
fi
|
fi
|
||||||
if [ "${ELEMENTS_LIQUID_ENABLE}" = ON ];then
|
if [ "${ELEMENTS_LIQUID_ENABLE}" = ON ];then
|
||||||
osSudo "${ROOT_USER}" systemctl enable liquid.service
|
osSudo "${ROOT_USER}" systemctl enable elements-liquid.service
|
||||||
|
fi
|
||||||
|
if [ "${ELEMENTS_LIQUIDTESTNET_ENABLE}" = ON ];then
|
||||||
|
osSudo "${ROOT_USER}" systemctl enable elements-liquidtestnet.service
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Elementsd
|
Description=Elementsd-liquid
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/elementsd -daemon -printtoconsole -chain=liquidtestnet -pid=/elements/elements-testnet.pid
|
ExecStart=/usr/local/bin/elementsd -daemon -printtoconsole -chain=liquidv1 -pid=/elements/elements-liquid.pid
|
||||||
ExecStop=/usr/local/bin/elements-cli stop
|
ExecStop=/usr/local/bin/elements-cli stop
|
||||||
|
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/elements/elements-testnet.pid
|
PIDFile=/elements/elements-liquid.pid
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
User=elements
|
User=elements
|
@ -1,13 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Elementsd
|
Description=Elementsd-liquidtestnet
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/elementsd -daemon -printtoconsole -chain=liquidv1 -pid=/elements/elements.pid
|
ExecStart=/usr/local/bin/elementsd -daemon -printtoconsole -chain=liquidtestnet -pid=/elements/elements-liquidtestnet.pid
|
||||||
ExecStop=/usr/local/bin/elements-cli stop
|
ExecStop=/usr/local/bin/elements-cli stop
|
||||||
|
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/elements/elements.pid
|
PIDFile=/elements/elements-liquidtestnet.pid
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
User=elements
|
User=elements
|
Loading…
x
Reference in New Issue
Block a user