aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/templates/xmr_stak/xmr-stak.service.erb
blob: 33cb08d8013dc42201ff65a75971d81a58ab21e7 (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 -c /var/lib/xmr_stak/xmr-stak.conf
Nice=19

[Install]
WantedBy=multi-user.target