Added geth node service for deployment

pull/274/head
kompotkot 2021-09-22 10:29:00 +00:00
rodzic b93a08c48f
commit 02f753564b
3 zmienionych plików z 21 dodań i 3 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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'

Wyświetl plik

@ -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]