I am running a couple of private nodes on AWS, and I am trying to get Geth to start on system start up.
I found this post --> Is there the start/stop script of geth after Debian/Ubuntu booting?
and followed it, trying the following in the geth@.service file
<P>[Unit]<BR> Description=Start geth<BR> Requires=network.target<BR> [Service]<BR> Type=forking<BR> User=%I<BR> ExecStart=/bin/sh -c "/usr/bin/geth --networkid 1900 --nodiscover --verbosity 4 init /home/ubuntu/.ethereum/InitGenesis.json"<BR> Restart=on-failure<BR> [Install]<BR> WantedBy=multi-user.target<BR> </P><P>
However I cannot get Geth to start.
systemctl status geth@ubuntu outputs:
<p>● firstname.lastname@example.org - Start geth<BR> Loaded: loaded (/etc/systemd/system/geth@.service; disabled; vendor preset: enabled)<BR> Active: inactive (dead)<P>
I am not sure what I am doing wrong. Can anyone point me in the right direction?