Go-ethereum: systemctl problem

Created on 10 Jan 2018  路  3Comments  路  Source: ethereum/go-ethereum

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]

WantedBy=multi-user.target

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]

WantedBy=multi-user.target

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]

WantedBy=multi-user.target

Why? I need service with '--syncmode "fast"'

inactive

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 start return an error of some sort, are there errors in journalctl etc.).

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

keitaj picture keitaj  路  3Comments

aomiba picture aomiba  路  3Comments

JMaxU picture JMaxU  路  3Comments

tymat picture tymat  路  3Comments

phpsamsb picture phpsamsb  路  3Comments