Jeffery To
3f247ef455
aria2: Update init script
This replaces the use of uci_validate_section() with
uci_load_validate(), which removes the need to declare local variables
for every config option.
This also lets procd trigger the validation function directly, and
removes some unnecessary curly brackets.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
6 years ago
Ahmar Aftab
603382ceb3
aria2: Add new options and fix typos
Added new options for aria2 config and fixed some typos within aria2 init file.
Signed-off-by: Ahmar Aftab <pakahmar@hotmail.com>
6 years ago
James Qian
a07454d026
aria2: fix some typo
Signed-off-by: James Qian <sotux82@gmail.com>
6 years ago
brv phoenix
ed9514e93e
aria2: fixed the spelling for rpc-passwd and rpc-user.
Signed-off-by: brv phoenix <feixuekaka1@gmail.com>
6 years ago
Waldemar Konik
7b1c25f48c
aria2: handle check_certificate=false config option
Signed-off-by: Waldemar Konik <informatyk74@interia.pl>
6 years ago
Hsing-Wang Liao
df615166ba
aria2: Add missing 'or' in section validate function
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
7 years ago
Hsing-Wang Liao
961a1b5190
aria2: Rewrite init script
* Add aria2 user and group.
* Use procd to start service.
* Add more supported options.
Compatible with previous version.
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
7 years ago
Hsing-Wang Liao
335e32681f
aria2: fix bugs and make some changes
* Fix aria2c failed to start after change daemon user, issue #2985 ;
* Change default download dir;
* Clear exist log file when aria2 start;
* Add log level option;
* Change dir owner when start.
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
8 years ago
Hostkit
f96c661e27
aria2: add log
add aria2.log and replace logger -t ARIA2C 'Restarting aria2s service' with logger -t ARIA2C 'Restarting aria2c service' :D :p
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
8 years ago
Hsing-Wang Liao
5246efe3d8
aria2: update init file
This update is from #2961 , thank @hostkit .
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
8 years ago
Hsing-Wang Liao
8ee05d3f05
aria2: Add files in order to use LuCI
* Add config file.
* Add init.d file.
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
9 years ago