I recently built a crypto currency miner and I'm using Linux Mint as my OS for the miner. I manually turn on the miner by navigating to ~/Desktop/claymore and running ./start_only_eth.bash and my miner starts mining. So i palced this line ./home/ethereum/Desktop/claymore/start_only_eth.bash in the /etc/init.d/rc.local file but I don't think it's running. When I type ps or ps -aux | grep /home neither ps command shows that my miner is running. What am I doing wrong with my auto startup stript?

Also, how can I setup my miner so that the computer will always be on? Meaning, if the power goes off and is restored it will turn itself back on as long as there is power without me having to maunally push the button? Thanks all.

Dani AI

Generated

Short diagnosis and quick fixes (for ): the startup line likely never ran because it used a relative/incorrect path and was dropped into the rc.local compatibility script. On systemd-based Mint, /etc/rc.local is a legacy compatibility unit and can run at the wrong time or not at all; it also expects commands to be runnable without relying on a full user environment. Make the script executable, add a proper shebang (for example #!/bin/bash), use absolute paths everywhere, and avoid running long jobs in rc.local — those are common causes of silent failure. As hinted, the entry may indeed not belong there. (askubuntu.com)

A reliable, maintainable approach is a systemd service. Create a unit (replace <username> and the script name with your values):

[Unit]
Description=My miner
After=multi-user.target

[Service]
Type=simple
User=<username>
WorkingDirectory=/home/<username>/Desktop/claymore
ExecStart=/home/<username>/Desktop/claymore/start_miner.sh
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Save as /etc/systemd/system/myminer.service, run sudo systemctl daemon-reload then sudo systemctl enable --now myminer.service. Inspect status and logs with sudo systemctl status myminer.service and sudo journalctl -u myminer.service -b. If you prefer cron, @reboot is an option but it can run before some services are up (use with care). (freedesktop.org)

Power-on after outage: most motherboards expose an “After Power Failure / Restore AC Power Loss / Power On after Power Failure” BIOS option — enter BIOS (Del/F2), find the power/advanced section and set it to Power On. If the option is missing on your model, use a UPS/power controller or a remote power device as a fallback. For server/board examples see vendor docs. (intel.com)

Troubleshooting notes: run the script manually as the service user to confirm it works, check journalctl for errors, ensure GPU drivers/modules are loaded before the miner starts (adjust After= if needed), and log stdout/stderr from the script so failures are visible.

Recommended Answers

All 3 Replies

RTFM! This is a simple system configuration setting, to instruct the system to restart on power-on. If you can't figure it out by yourself, you should not be doing what you are trying to do! Google will help...

Noted.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.