]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/profile/templates/xmr_stak/xmr-stak.service.erb
Make cpu limit for xmr stak parameter
[perso/Immae/Projets/Puppet.git] / modules / profile / templates / xmr_stak / xmr-stak.service.erb
similarity index 63%
rename from modules/profile/files/xmr_stak/xmr-stak.service
rename to modules/profile/templates/xmr_stak/xmr-stak.service.erb
index 93ee383d682318744de0c7e95d36a67b08e03040..d63103b85e0cad10aeb3d3fdf907302987f64868 100644 (file)
@@ -8,8 +8,9 @@ WorkingDirectory=/var/lib/xmr_stak
 Type=simple
 User=xmr_stak
 Group=xmr_stak
-ExecStart=/usr/bin/cpulimit --limit 90 /usr/bin/xmr-stak -c /var/lib/xmr_stak/xmr-stak.conf
+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
+