Create aria2.init.example
This commit is contained in:
parent
8e449bb104
commit
ec40c2e6e0
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue