Rc 50 geb avis

Comment

Author: Admin | 2025-04-28

I have installed xmrig and it works fine when. I start it. I have tried to get it to start on boot and this is not working.This is what /etc/rc.local looks like at this moment.Code: Select all#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.exec > /tmp/rc-local.out 2>&1;set -x# Print the IP address_IP=$(hostname -I) || trueif [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP"ficd xmrigcd build./xmrig -o gulf.moneroocean.stream:10128 -u "my wallet address" -p pi1 >/dev/null 2>&1&exit 0I have played with the above code a bit. The cd commands were one piece as ~/xmrig/build and that was not working so I separated the command. The line exec > /tmp/rc-local.out 2>&1;set -x was taken from another post that said the common problem with a lot of this kind of issue is not having that line before # Print the IP address. This is the error I got when I ran the systemctl statuspi@raspberrypi:~ $ systemctl status rc-local.service● rc-local.service - /etc/rc.local Compatibility Loaded: loaded (/lib/systemd/system/rc-local.service; enabled-runtime; vendor preset: enabled) Drop-In: /usr/lib/systemd/system/rc-local.service.d └─debian.conf /etc/systemd/system/rc-local.service.d └─ttyoutput.conf Active: failed (Result: exit-code) since Tue 2021-11-16 16:50:04 GMT; 2min 9s ago Docs: man:systemd-rc-local-generator(8) Process: 503 ExecStart=/etc/rc.local start (code=exited, status=2) CPU: 14msNov 16 16:50:04 raspberrypi systemd[1]: Starting /etc/rc.local Compatibility...Nov 16 16:50:04 raspberrypi systemd[1]: rc-local.service: Control process exited, code=exited, status=2/INVALIDARGUMENTNov 16 16:50:04 raspberrypi systemd[1]: rc-local.service: Failed with result 'exit-code'.Nov 16 16:50:04 raspberrypi systemd[1]: Failed to start /etc/rc.local Compatibility.I am very new to all of this and it seemed like a fun project. Now I am just trying to figure out my misunderstanding of how to make this work. Thanks to any who can help. Let me know if more info is needed to help understand the problem.

Add Comment