Skip to content

Instantly share code, notes, and snippets.

@gionn
Created January 9, 2022 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gionn/6db314ca1c69cae8c1f449eb2ca18f49 to your computer and use it in GitHub Desktop.
Save gionn/6db314ca1c69cae8c1f449eb2ca18f49 to your computer and use it in GitHub Desktop.
Fantom opera systemd service for node and pruning
[Unit]
Description=FTM Node daemon for Pruning Snapshot
[Service]
User=peastew
Type=oneshot
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/bin/opera --genesis /home/peastew/.opera/mainnet.g --cache 16384 --config /home/peastew/.opera/config.toml --datadir /home/peastew/.opera snapshot prune-state
PIDFile=/home/peastew/.opera/ftmnodeprune.pid
Restart=no
[Install]
WantedBy=multi-user.target
[Unit]
Description=FTM Node daemon
[Service]
User=peastew
Type=simple
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/bin/opera --genesis /home/peastew/.opera/mainnet.g --cache 16384 --http --config /home/peastew/.opera/config.toml --datadir /home/peastew/.opera --verbosity 2
PIDFile=/home/peastew/.opera/ftmnode.pid
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment