Created
July 3, 2019 23:38
-
-
Save whoamiTM/c471f7482d74196a64a47f2ef0a6fa54 to your computer and use it in GitHub Desktop.
systemd unit file for miner_watchdog.sh to start service at boot
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
[Unit] | |
Description=Mining Watchdog | |
After=network.target | |
[Service] | |
ExecStart=/bin/bash -c "/usr/local/bin/mining_watchdog.sh | tee /home/whoami/mining_watchdog.log" | |
StandardOutput=inherit | |
StandardError=inherit | |
Restart=always | |
User=whoami | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment