Created
September 23, 2015 21:41
-
-
Save hubutui/94ee2272b4098919f492 to your computer and use it in GitHub Desktop.
为 openwrt 写的启动脚本, 放在 /etc/init.d/ 目录下, /etc/init.d/amuleweb start 即可启动, 需要先启动 amuled 服务.
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 /etc/rc.common | |
# startup script for amuleweb | |
# Copyright (C) 2015 | |
# darcy <hot123tea123@gmail.com> | |
# Must start after amuled | |
START=99 | |
start() { | |
echo "amuleweb start" | |
amuleweb --config-file=/root/.aMule/remote.conf --quiet & | |
} | |
stop() { | |
echo "amuleweb stop" | |
killall -9 amuleweb | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment