kopia lustrzana https://github.com/bugout-dev/moonstream
Added geth node service for deployment
rodzic
b93a08c48f
commit
02f753564b
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Ethereum node Geth client
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=ubuntu
|
||||
Group=www-data
|
||||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||
ExecStart=/usr/bin/geth --syncmode full \
|
||||
--port 41381 --datadir /mnt/disks/nodes/ethereum \
|
||||
--txpool.globalslots 950000 --txpool.globalqueue 50000 \
|
||||
--http --http.port 18375 --http.api eth,web3,txpool
|
||||
ExecStop=/bin/kill -s SIGINT -$MAINPID
|
||||
SyslogIdentifier=ethereum-node
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -7,5 +7,5 @@ Type=oneshot
|
|||
User=ubuntu
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl
|
||||
EnvironmentFile=/home/ubuntu/mooncrawl-secrets/app.env
|
||||
ExecStart=/usr/bin/bash -c '/home/ubuntu/mooncrawl-env/bin/python -m mooncrawl.ethcrawler trending'
|
||||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||
ExecStart=/usr/bin/bash -c '/home/ubuntu/moonstream-env/bin/python -m mooncrawl.ethcrawler trending'
|
|
@ -6,7 +6,8 @@ After=network.target
|
|||
User=ubuntu
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/ubuntu/moonstream/crawlers/ethtxpool
|
||||
ExecStart=/home/ubuntu/moonstream/crawlers/ethtxpool/ethtxpool
|
||||
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
||||
ExecStart=/home/ubuntu/moonstream/crawlers/ethtxpool/ethtxpool -geth http://127.0.0.1:"${MOONSTREAM_GETH_HTTP_PORT}"
|
||||
SyslogIdentifier=ethereum-txpool
|
||||
|
||||
[Install]
|
||||
|
|
Ładowanie…
Reference in New Issue