Created
January 20, 2022 06:48
-
-
Save tianhaoz95/141e6015ad6e80d689f40d8790a088da to your computer and use it in GitHub Desktop.
This file contains 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
# /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