Skip to content

Instantly share code, notes, and snippets.

@hubutui
Created September 23, 2015 21:41
Show Gist options
  • Save hubutui/94ee2272b4098919f492 to your computer and use it in GitHub Desktop.
Save hubutui/94ee2272b4098919f492 to your computer and use it in GitHub Desktop.
为 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