mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-16 10:22:50 +00:00
27 lines
786 B
Desktop File
27 lines
786 B
Desktop File
# Mempool service
|
|
# /etc/systemd/system/mempoolspace.service
|
|
|
|
[Unit]
|
|
Description=Mempool
|
|
Wants=www.service docker_images.service
|
|
After=www.service docker_images.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/mnt/hdd/mynode/settings/.btcrpc_environment
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
|
ExecStartPre=/usr/bin/wait_on_docker_image_install.sh
|
|
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
|
|
|
|
User=root
|
|
Group=root
|
|
Type=simple
|
|
TimeoutSec=240
|
|
Restart=always
|
|
RestartSec=120
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=mempoolspace
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |