2021-12-16 21:32:17 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Polygon moonworm crawler
|
|
|
|
After=network.target
|
|
|
|
StartLimitIntervalSec=300
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=ubuntu
|
|
|
|
Group=www-data
|
|
|
|
WorkingDirectory=/home/ubuntu/moonstream/crawlers/mooncrawl
|
|
|
|
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=15s
|
2021-12-16 21:48:47 +00:00
|
|
|
ExecStart=/home/ubuntu/moonstream-env/bin/python -m mooncrawl.moonworm_crawler.cli crawl -b polygon
|
2021-12-16 21:32:17 +00:00
|
|
|
SyslogIdentifier=polygon-moonworm-crawler
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|