]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/profile/templates/xmr_stak/xmr-stak.service.erb
Merge branch 'dev'
[perso/Immae/Projets/Puppet.git] / modules / profile / templates / xmr_stak / xmr-stak.service.erb
1 [Unit]
2 Description=XMR Miner
3 After=network.target
4
5 [Service]
6 WorkingDirectory=/var/lib/xmr_stak
7
8 Type=simple
9 User=xmr_stak
10 Group=xmr_stak
11 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
12 Nice=19
13
14 [Install]
15 WantedBy=multi-user.target
16