Skip to content

Instantly share code, notes, and snippets.

@sajithneyo
Created March 28, 2019 19:34
Show Gist options
  • Save sajithneyo/4135b021f50ed5e881642f4a68978974 to your computer and use it in GitHub Desktop.
Save sajithneyo/4135b021f50ed5e881642f4a68978974 to your computer and use it in GitHub Desktop.
Aria2 systemd service
[Unit]
Description=Aria2c download manager
Requires=network.target
After=dhcpcd.service
[Service]
Type=forking
User=*USER*
RemainAfterExit=yes
ExecStart=/usr/bin/aria2c --conf-path=/user/aria2/conf/aria.conf
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/kill -s STOP $MAINPID
RestartSec=1min
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment