Skip to content

Instantly share code, notes, and snippets.

@hubutui
Created Sep 23, 2015
Embed
What would you like to do?
为 openwrt 写的启动脚本, 放在 /etc/init.d/ 目录下, /etc/init.d/amuleweb start 即可启动, 需要先启动 amuled 服务.
#!/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