Created
January 9, 2022 10:36
-
-
Save gionn/6db314ca1c69cae8c1f449eb2ca18f49 to your computer and use it in GitHub Desktop.
Fantom opera systemd service for node and pruning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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