Create aria2.init.example

This commit is contained in:
tianyu 2015-07-23 10:00:25 +08:00
parent 8e449bb104
commit ec40c2e6e0
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
SERVICE_USE_PID=1
START=50
start() {
umask 0000
aria2c --daemon=true --enable-rpc --rpc-listen-all=false -D --conf-path=/etc/aria2.conf
}
stop() {
/usr/bin/killall aria2c
}