Set up a server by editing rc.local and inserting:
rc.local
/home/username/serv.sh &
And then writing the file accordingly:
cat > /home/username/serv.sh << EOF #!/bin/bash cd /home/username/cpp-ethereum-build/eth while [ 1 ]; do HOME=/home/username sudo -u username ./eth -o peer -x 256 -l 30303 -m off -v 1 > /home/username/eth.log mv /home/username/eth.log /home/username/eth.log-\$(date +%F_%T) done EOF chmod +x /home/username/serv.sh
Note: Anywhere where it says username you can change it to your own home directory
username
There was an error while loading. Please reload this page.