Created
January 6, 2018 11:39
-
-
Save flxxyz/274dac102def0f3578a35423640ccf54 to your computer and use it in GitHub Desktop.
aria2c自建管理脚本
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
#!/bin/sh | |
path=`pwd` | |
case "$1" in | |
start) | |
echo -n "Starting aria2c" | |
aria2c --conf-path=${path}'/conf/aria2.conf' -D | |
;; | |
stop) | |
echo -n "Shutting down aria2c " | |
killall aria2c ;; | |
esac | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment