xmrig_setup icon indicating copy to clipboard operation
xmrig_setup copied to clipboard

Launching ray (ray.io) triggers xmrig

Open jmakov opened this issue 2 years ago • 0 comments

$ ray up cluster.yaml triggers somehow something that starts (on the node on which the command launched and moneroocean service is installed) in the background xmrig --config=/home/user/moneroocean/config_background.json process. I'm not sure how to debug systemd. If I then start the service via sudo service moneroocean_miner start, it starts and I have 2 xmrig processes running. Any ideas?

Nothing is seen in xmrig.log, but syslog contains:

systemd[1]: Started Session 189 of user User.
xmrig[1748227]:  * ABOUT        XMRig/6.16.2-mo2 gcc/11.2.0
# other expected xmrig logs

Looks like the entry in ~/.profile is to blame:

/home/user/moneroocean/miner.sh --config=/home/user/moneroocean/config_background.json >/dev/null 2>&1                                                  

Why is this needed if it's already registered as a service (which starts at boot)? Also this entry in .profile is there only in 1 of 5 nodes on which this was run: curl -s -L https://raw.githubusercontent.com/MoneroOcean/xmrig_setup/master/setup_moneroocean_miner.sh | bash -s xxx. The shell used where the entry is present was byobu, shells where the entry in .profile doesn't exist was bash.

jmakov avatar Dec 06 '21 12:12 jmakov