summarylogtreecommitdiffstats
path: root/xmrig.service
blob: 796289d1167168bc94bf59b1fa34b2cc0f6c0e62 (plain)
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 -B
WorkingDirectory=/etc/xmrig
Restart=on-failure
RestartSec=20s
StartLimitInterval=30min
StartLimitBurst=30

[Install]
WantedBy=multi-user.target