diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-16 20:37:40 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-16 20:53:40 +0100 |
commit | 62fe8998b5497864d51ed0fe909a0ff60cc1520b (patch) | |
tree | e8826b3115cb17bae7faa76c8300e993b279fb35 /modules/profile/templates | |
parent | 69da835d04e741f4e85da3c473ba86c8801931fd (diff) | |
download | Puppet-62fe8998b5497864d51ed0fe909a0ff60cc1520b.tar.gz Puppet-62fe8998b5497864d51ed0fe909a0ff60cc1520b.tar.zst Puppet-62fe8998b5497864d51ed0fe909a0ff60cc1520b.zip |
Make cpu limit for xmr stak parameter
Diffstat (limited to 'modules/profile/templates')
-rw-r--r-- | modules/profile/templates/xmr_stak/xmr-stak.service.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/profile/templates/xmr_stak/xmr-stak.service.erb b/modules/profile/templates/xmr_stak/xmr-stak.service.erb new file mode 100644 index 0000000..d63103b --- /dev/null +++ b/modules/profile/templates/xmr_stak/xmr-stak.service.erb | |||
@@ -0,0 +1,16 @@ | |||
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 | ||
12 | Nice=19 | ||
13 | |||
14 | [Install] | ||
15 | WantedBy=multi-user.target | ||
16 | |||