I have problem with starting a systemd service of geth.
This is the service specification geth.service
[Unit]
Description=Geth
[Service]
Type=simple
User=eth
Restart=always
RestartSec=12
ExecStart=/home/eth/starteth.sh
[Install]
WantedBy=default.target
This is the starteth.sh script
#!/usr/bin/env bash
geth --syncmode "fast" --rpc --rpcport "9820" --rpcaddr "127.0.0.1" --rpccorsdomain "*"
And I get error when start service and check status
root@server:~# sudo systemctl start geth
root@server:~# sudo systemctl status geth
● geth.service - Geth
Loaded: loaded (/etc/systemd/system/geth.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-06-16 22:02:51 CEST; 3s ago
Process: 19295 ExecStart=/home/eth/starteth.sh (code=exited, status=203/EXEC)
Main PID: 19295 (code=exited, status=203/EXEC)
Edit: OS is Ubuntu 18
starteth.shis looking for/bin/geth,/usr/bin/gethand/or/usr/local/bin/geth, but is not finding it. Do you have/home/eth/geth? If yes, then change the 2nd line ofstarteth.shfromgeth --syncmode ...to/home/eth/geth --syncmode .... – telcoM Jun 17 '21 at 13:58