Skip to content

Instantly share code, notes, and snippets.

@VMatrix1900
Created January 1, 2025 16:01

Revisions

  1. VMatrix1900 created this gist Jan 1, 2025.
    12 changes: 12 additions & 0 deletions xmrig.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    [Unit]
    Description=XMRig Daemon
    After=network.target

    [Service]
    Type=simple
    ExecStart=/root/xmrig --config=/root/xmrig-config.json
    Restart=always
    User=root

    [Install]
    WantedBy=multi-user.target