aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/templates/xmr_stak/xmr-stak.service.erb
blob: d63103b85e0cad10aeb3d3fdf907302987f64868 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=XMR Miner
After=network.target

[Service]
WorkingDirectory=/var/lib/xmr_stak

Type=simple
User=xmr_stak
Group=xmr_stak
ExecStart=/usr/bin/cpulimit --limit <%= @cpulimit %> /usr/bin/xmr-stak -c /var/lib/xmr_stak/xmr-stak.conf
Nice=19

[Install]
WantedBy=multi-user.target