Skip to content

Instantly share code, notes, and snippets.

@christopherdro
Last active August 16, 2017 19:11
Show Gist options
  • Save christopherdro/12079034a55307ff90883803ad02af42 to your computer and use it in GitHub Desktop.
Save christopherdro/12079034a55307ff90883803ad02af42 to your computer and use it in GitHub Desktop.
Example of systemd services for geth and swarm
[Unit]
Description=Ethereum go client
[Service]
Type=simple
ExecStart=/home/ubuntu/go/bin/geth --testnet --fast --datadir /home/ubuntu/myDataDir --keystore /home/ubuntu/myDataDir/keystore --rpc --shh
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
[Service]
Type=simple
ExecStart=/home/ubuntu/go/bin/swarm --bzzaccount 8f664c203d98f964410728db393020bf9599e9e6 --datadir /home/ubuntu/myDataDir --password /home/ubuntu/myDataDir/keystore-pw --keystore /home/ubuntu/myDataDir/keystore --ens-api /home/ubuntu/myDataDir/geth.ipc
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment