2020-03-21 02:56:53 +00:00
|
|
|
# Mempool service
|
2019-12-23 05:46:42 +00:00
|
|
|
# /etc/systemd/system/mempoolspace.service
|
|
|
|
|
|
|
|
[Unit]
|
2020-03-21 02:56:53 +00:00
|
|
|
Description=Mempool
|
2020-02-23 04:19:22 +00:00
|
|
|
Wants=www.service docker_images.service
|
|
|
|
After=www.service docker_images.service
|
2019-12-23 05:46:42 +00:00
|
|
|
|
|
|
|
[Service]
|
2021-02-23 02:39:14 +00:00
|
|
|
WorkingDirectory=/mnt/hdd/mynode/mempool
|
2020-02-09 05:19:12 +00:00
|
|
|
EnvironmentFile=/mnt/hdd/mynode/settings/.btcrpc_environment
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2019-12-23 05:46:42 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
2020-03-01 20:53:50 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_docker_image_install.sh
|
2021-02-23 02:39:14 +00:00
|
|
|
ExecStart=/usr/local/bin/docker-compose up
|
|
|
|
ExecStartPost=/usr/bin/mynode_post_mempool.sh
|
|
|
|
|
|
|
|
ExecStop=/usr/local/bin/docker-compose down
|
|
|
|
|
|
|
|
# Old v1
|
|
|
|
#ExecStart=/usr/bin/docker run --rm --name mempoolspace -p 4080:80 -e BITCOIN_NODE_HOST=172.17.0.1 -e BITCOIN_NODE_USER=mynode -e BITCOIN_NODE_PASS=${BTC_RPC_PASSWORD} -e MEMPOOL_REFRESH_RATE_MS=10000 mempoolspace
|
|
|
|
#ExecStop=/usr/bin/docker stop -t 2 mempoolspace
|
2019-12-23 05:46:42 +00:00
|
|
|
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
Type=simple
|
2021-02-23 02:39:14 +00:00
|
|
|
TimeoutSec=120
|
2019-12-23 05:46:42 +00:00
|
|
|
Restart=always
|
2021-02-23 02:39:14 +00:00
|
|
|
RestartSec=30
|
2019-12-23 05:46:42 +00:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=mempoolspace
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|