Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created January 20, 2022 06:48
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 tianhaoz95/141e6015ad6e80d689f40d8790a088da to your computer and use it in GitHub Desktop.
Save tianhaoz95/141e6015ad6e80d689f40d8790a088da to your computer and use it in GitHub Desktop.
# /etc/systemd/system/duino.service
[Unit]
Description=duino
ConditionPathExists=/home/pi/Crypto/duino-coin/PC_Miner.py
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/pi/Crypto/duino-coin/
ExecStart=/usr/bin/python3 PC_Miner.py
Restart=on-failure
RestartSec=10
LimitNOFILE=4096
[Install]
WantedBy=basic.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment