NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
night_surfer
Sep 15, 2014Aspirant
amule installation and starting problem
Hi all, i've found a problem un my RN104: when i try to start amule (manually installed with the right arm package) the NAS system switch it off automatically after a few seconds and give me the fol...
crazy72
Nov 07, 2014Aspirant
password is password.
be sure there is amule-daemon in etc/init.d
#! /bin/bash
### BEGIN INIT INFO
# Provides: amule-daemon
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Daemonized version of aMule.
# Description: Starts the aMule daemon with the user specified in
# /etc/default/amule-daemon.
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/amuled
WEB=/usr/bin/amuleweb
NAME=amuled
DESC=amuled
RUNAMULE=yes
USER=admin
PIDFILE=/var/run/amule-daemon.pid
test -x $DAEMON || exit 0
# Include amule defaults if available
if [ -f /etc/default/amule ] ; then
. /etc/default/amule
fi
if [ "$RUNAMULE" != "yes" ];then
echo "Amule not to be started. Edit /etc/default/amule first."
exit 1
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --test >/dev/null
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --background --pidfile $PIDFILE --make-pidfile -- -c /data/amule/ >/dev/null
start-stop-daemon --start --quiet --exec $WEB --user "$USER" --chuid "$USER" --background -- -f /data/amule/amule.conf >/dev/null
#$DAEMON -f -c /data/amule/
#while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done
#$WEB --quiet &
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
killall --quiet --ignore-case $WEB
killall --quiet --ignore-case $DAEMON
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
killall --quiet --ignore-case $WEB
killall --quiet --ignore-case $DAEMON
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --test >/dev/null
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --background --pidfile $PIDFILE --make-pidfile -- -c /data/amule/ >/dev/null
start-stop-daemon --start --quiet --exec $WEB --user "$USER" --chuid "$USER" --background -- -f /data/amule/amule.conf >/dev/null
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
be sure there is amule-daemon in etc/init.d
#! /bin/bash
### BEGIN INIT INFO
# Provides: amule-daemon
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Daemonized version of aMule.
# Description: Starts the aMule daemon with the user specified in
# /etc/default/amule-daemon.
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/amuled
WEB=/usr/bin/amuleweb
NAME=amuled
DESC=amuled
RUNAMULE=yes
USER=admin
PIDFILE=/var/run/amule-daemon.pid
test -x $DAEMON || exit 0
# Include amule defaults if available
if [ -f /etc/default/amule ] ; then
. /etc/default/amule
fi
if [ "$RUNAMULE" != "yes" ];then
echo "Amule not to be started. Edit /etc/default/amule first."
exit 1
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --test >/dev/null
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --background --pidfile $PIDFILE --make-pidfile -- -c /data/amule/ >/dev/null
start-stop-daemon --start --quiet --exec $WEB --user "$USER" --chuid "$USER" --background -- -f /data/amule/amule.conf >/dev/null
#$DAEMON -f -c /data/amule/
#while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done
#$WEB --quiet &
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
killall --quiet --ignore-case $WEB
killall --quiet --ignore-case $DAEMON
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
killall --quiet --ignore-case $WEB
killall --quiet --ignore-case $DAEMON
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --test >/dev/null
start-stop-daemon --start --quiet --exec $DAEMON --user "$USER" --chuid "$USER" --background --pidfile $PIDFILE --make-pidfile -- -c /data/amule/ >/dev/null
start-stop-daemon --start --quiet --exec $WEB --user "$USER" --chuid "$USER" --background -- -f /data/amule/amule.conf >/dev/null
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!