background

xmr-stack-cpu autolaunch

Hi, first of all thanks for the compiled version of xmr-stack-cpu, it works very well on my MacBook (I use it just to add some Hash on my total).
The question is: I want to autolaunch on system start up this program.
I tried with LaunchD by creating a plist file like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
            <string>com.system.xmr</string>
        <key>WorkingDirectory</key>
            <string>/Library/XMR/CPU/xmr-stak-cpu</string>
        <key>Program</key>
            <string>/Library/XMR/CPU/xmr-stak-cpu</string>
        <key>ProgramArguments</key>
        <array>
            <string>/Library/XMR/CPU/xmr-stak-cpu</string>
            <string>/Library/XMR/CPU/config.xml</string>
        </array>
        <key>RunAtLoad</key>
            <true/>
        <key>KeepAlive</key>
            <true/>
    </dict>
</plist>

but the Program don't start, I think that probably it doesn't load correctly the config file and go with the "Failed to open config file" error

Leave a Comment

Drop image/file