Skip to content

Instantly share code, notes, and snippets.

@Wondertan
Created June 11, 2021 12:41
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 Wondertan/64fcf4e1664f02a40401d5dcb05180c0 to your computer and use it in GitHub Desktop.
Save Wondertan/64fcf4e1664f02a40401d5dcb05180c0 to your computer and use it in GitHub Desktop.
Lotus Miner Auto Pledging Service
# /etc/systemd/system/pledge.service
[Unit]
Description=Lotus Miner Auto Pledging Service
Wants=lotus-miner.service
[Service]
User=lotus # or any other user
Type=oneshot
ExecStart=lotus-miner sectors pledge
Environment=LOTUS_MINER_PATH=/lotus/miner-repo # set miner repository accordingly to your setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment