Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2015 21:41
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 <>
# Must start after amuled
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