aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/templates/xmr_stak/xmr-stak.service.erb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/templates/xmr_stak/xmr-stak.service.erb')
-rw-r--r--modules/profile/templates/xmr_stak/xmr-stak.service.erb16
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]
2Description=XMR Miner
3After=network.target
4
5[Service]
6WorkingDirectory=/var/lib/xmr_stak
7
8Type=simple
9User=xmr_stak
10Group=xmr_stak
11ExecStart=/usr/bin/cpulimit --limit <%= @cpulimit %> /usr/bin/xmr-stak -c /var/lib/xmr_stak/xmr-stak.conf
12Nice=19
13
14[Install]
15WantedBy=multi-user.target
16