Created
March 28, 2019 19:34
-
-
Save sajithneyo/4135b021f50ed5e881642f4a68978974 to your computer and use it in GitHub Desktop.
Aria2 systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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