Work:
[Unit]
Description=Geth Ethereum node
After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/default/geth
ExecStart=/usr/bin/geth $GETH_ENABLE_RPC $GETH_CACHE $GETH_MAXPEERS
User=ethereumuser
RemainAfterExit=true
[Install]
Don't work:
[Unit]
Description=Geth Ethereum node
After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/default/geth
ExecStart=/usr/bin/geth
User=ethereumuser
RemainAfterExit=true
[Install]
Don't work:
[Unit]
Description=Geth Ethereum node
After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/default/geth
ExecStart=/usr/bin/geth --syncmode "fast"
User=ethereumuser
RemainAfterExit=true
[Install]
Why? I need service with '--syncmode "fast"'
@freshonline it would be very useful if you could clarify what you mean when you say it doesn't work (i.e. does systemctl start return an error of some sort, are there errors in journalctl etc.).
I need service with '--syncmode "fast"'
I doubt you really need the --syncmode "fast" switch, as it is default for quite a long time already. If you insist, try instead:
ExecStart=/usr/bin/geth "--syncmode fast"
More info here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
@freshonline it would be very useful if you could clarify what you mean when you say it doesn't work (i.e. does
systemctl startreturn an error of some sort, are there errors injournalctletc.).