Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example xmr-stak systemd service unit file.
Description=xmr-stak miner
# interesting info about starting as regular user:
ExecStart=/path/xmr-stak/bin/xmr-stak --currency monero -o -u my_wallet -p x --config /path/xmr-stak/config.txt --cpu /path/xmr-stak/cpu.txt
# save this file in /etc/systemd/system/xmr-stak.service
# systemctl enable xmr-stak
# systemctl start xmr-stak
# note, xmr-stak executable must have selinux context unconfined_u:object_r:bin_t:s0

This comment has been minimized.

Copy link

@semeion semeion commented Jul 14, 2018

Hello! What is that EnvironmentFile=-/etc/sysconfig/xmr-stak ? I don´t have this file and/or that directoy on my system.

BTW nice jobs on this systemd service, thanks!


This comment has been minimized.

Copy link
Owner Author

@akostadinov akostadinov commented Mar 18, 2020

@semelon , you just create it with whatever environemnt variables you want you program to work with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment