Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Last active February 27, 2025 10:16
Show Gist options
  • Select an option

  • Save h0tw1r3/ccf7668552fae5d14148 to your computer and use it in GitHub Desktop.

Select an option

Save h0tw1r3/ccf7668552fae5d14148 to your computer and use it in GitHub Desktop.

Revisions

  1. h0tw1r3 revised this gist Aug 25, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion aria2.daemon
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    continue
    dir=/var/www/downloads
    file-allocation=trunc
    file-allocation=falloc
    max-connection-per-server=4
    max-concurrent-downloads=2
    max-overall-download-limit=0
  2. h0tw1r3 revised this gist Aug 25, 2022. 2 changed files with 10 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion aria2.daemon
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,8 @@ file-allocation=trunc
    max-connection-per-server=4
    max-concurrent-downloads=2
    max-overall-download-limit=0
    min-split-size=25M
    min-split-size=25M
    rpc-allow-origin-all=true
    rpc-secret=YouShouldChangeThis
    input-file=/var/tmp/aria2c.session
    save-session=/var/tmp/aria2c.session
    5 changes: 5 additions & 0 deletions aria2c.service
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,16 @@
    # Override or Change User and Group per your local environment
    [Unit]
    Description=Aria2c download manager
    After=network.target

    [Service]
    Type=simple
    User=www-data
    Group=www-data
    ExecStartPre=/usr/bin/env touch /var/tmp/aria2c.session
    ExecStart=/usr/bin/aria2c --console-log-level=warn --enable-rpc --rpc-listen-all --conf-path=/etc/aria2.daemon
    TimeoutStopSec=20
    Restart=on-failure

    [Install]
    WantedBy=multi-user.target
  3. h0tw1r3 revised this gist Jun 8, 2014. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions aria2.daemon
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    continue
    dir=/var/www/downloads
    file-allocation=trunc
    max-connection-per-server=4
    max-concurrent-downloads=2
    max-overall-download-limit=0
    min-split-size=25M
  4. h0tw1r3 created this gist Jun 8, 2014.
    11 changes: 11 additions & 0 deletions aria2c.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    [Unit]
    Description=Aria2c download manager
    After=network.target

    [Service]
    Type=simple
    User=www-data
    ExecStart=/usr/bin/aria2c --console-log-level=warn --enable-rpc --rpc-listen-all --conf-path=/etc/aria2.daemon

    [Install]
    WantedBy=multi-user.target