diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-21 20:42:04 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-22 08:51:03 +0100 |
commit | 68bbff6199a64dd32739487334260962261f7195 (patch) | |
tree | 794e241f90cc71d9e198e3d45c7c67fa54ccbddf /modules/profile/files/xmr_stak | |
parent | 5de12d78299821e8ed09c492fa884e9742ed95d6 (diff) | |
download | Puppet-68bbff6199a64dd32739487334260962261f7195.tar.gz Puppet-68bbff6199a64dd32739487334260962261f7195.tar.zst Puppet-68bbff6199a64dd32739487334260962261f7195.zip |
Add xmr-stak
Diffstat (limited to 'modules/profile/files/xmr_stak')
-rw-r--r-- | modules/profile/files/xmr_stak/xmr-stak.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/profile/files/xmr_stak/xmr-stak.service b/modules/profile/files/xmr_stak/xmr-stak.service new file mode 100644 index 0000000..93ee383 --- /dev/null +++ b/modules/profile/files/xmr_stak/xmr-stak.service | |||
@@ -0,0 +1,15 @@ | |||
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 90 /usr/bin/xmr-stak -c /var/lib/xmr_stak/xmr-stak.conf | ||
12 | Nice=19 | ||
13 | |||
14 | [Install] | ||
15 | WantedBy=multi-user.target | ||