changed 5 years ago
Published Linked with GitHub

Lighthouse systemd Files

Beacon Node

etc/systemd/system/lighthouse-bn.service

[Unit]
Description=Lighthouse: Ethereum 2.0 Beacon Node
After=syslog.target network.target

[Service]
User=ec2-user
Type=simple
ExecStart=/home/ec2-user/.cargo/bin/lighthouse --testnet medalla bn --http --eth1
KillMode=process
KillSignal=SIGINT
TimeoutStopSec=90
Restart=on-failure
RestartSec=10s
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=lighthouse-bn

[Install]
WantedBy=multi-user.target

Usage

  • Start: sudo systemctl start lighthouse-bn
  • Enable: sudo systemctl enable lighthouse-bn
  • Stop: sudo systemctl stop lighthouse-bn
  • Follow Logs: sudo journalctl -u lighthouse-bn -f

Validator Client

etc/systemd/system/lighthouse-bn.service

[Unit]
Description=Lighthouse: Ethereum 2.0 Validator Client
After=syslog.target network.target

[Service]
User=ec2-user
Type=simple
ExecStart=/home/ec2-user/.cargo/bin/lighthouse vc --testnet medalla
KillMode=process
KillSignal=SIGINT
TimeoutStopSec=90
Restart=always
RestartSec=10s
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=lighthouse-vc

[Install]
WantedBy=multi-user.target

Usage

  • Start: sudo systemctl start lighthouse-vc
  • Enable: sudo systemctl enable lighthouse-vc
  • Stop: sudo systemctl stop lighthouse-vc
  • Follow Logs: sudo journalctl -u lighthouse-vc -f
Select a repo