Closed TomaszWaszczyk closed 2 years ago
Hi @TomaszWaszczyk
For example, create your config file here:
touch /home/tw/crunch-bot/.env
and than in the service file add it with the flag --config-path
straight after the crunch
command:
Unit]
Description=Kusama Autopayout
[Service]
ExecStart=/home/tw/crunch-bot/crunch --config-path /home/tw/crunch-bot/.env rewards era --seed-path '/home/tw/crunch-bot/.private.seed' --disable-matrix
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
let me know if you have any issues.
Thanks! Seems to work.
I try to run the tool as a
systemd
service, here is my try:What I do wrong? How to pass also config file? Where I do mistake?