1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[Unit] Description=XMRig Daemon for %i After=network.target [Service] User=xmrig Group=xmrig Type=forking ExecStart=/usr/bin/xmrig -c %i.conf --background --syslog WorkingDirectory=/etc/xmrig Restart=on-failure RestartSec=20s StartLimitInterval=30min StartLimitBurst=30 [Install] WantedBy=multi-user.target