4 PID
=`pidof -o %PPID /usr/bin/aria2c`
7 stat_busy
"Starting aria2"
9 [ -z "$PID" ] && su
-l -s /bin
/sh
-c "/usr/bin/aria2c --conf-path=/etc/aria2.conf" aria2
18 stat_busy
"Stopping aria2"
19 [ ! -z "$PID" ] && kill $PID &> /dev
/null
29 while [ ! -z "$PID" -a -d "/proc/$PID" ]; do sleep 1; done
33 echo "usage: $0 {start|stop|restart}"