Skip to content

Instantly share code, notes, and snippets.

@whoamiTM
Created July 3, 2019 23:38
Show Gist options
  • Save whoamiTM/c471f7482d74196a64a47f2ef0a6fa54 to your computer and use it in GitHub Desktop.
Save whoamiTM/c471f7482d74196a64a47f2ef0a6fa54 to your computer and use it in GitHub Desktop.
systemd unit file for miner_watchdog.sh to start service at boot
[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