Hi there,
I have a remote debian lenny system running on a Virtual Server. The only way to access it is by SSH. That's why I don't have access to amule's GUI and use the webserver with amuled configuration instead.
My question is:
I would like to change my amule root directory from /root/.aMule to /srv/amule
That's what I changed in order to make it work:
/etc/init.d/amule:
case "$1" in
start)
echo -n "Starting $DESC: "
su $USER -c "$DAEMON --config-dir=/srv/amule/"
while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done
su $USER -c "$WEB --quiet --config-file=/srv/amule/amule.conf &"
echo "$NAME."
;;
Explanation: /usr/bin/amuled is called by the init.d script with the parameter --config-dir=/srv/amule/. That should be sufficient to show the executable the location of the additional amule-files.
The same goes with /usr/bin/amuleweb but the parameters are slightly different (I looked them up by typing amuleweb --help resp. amuled --help on the command line.): --quiet --config-file=/srv/amule/amule.conf
Additionally, I made the following changes to the amule.conf in the new root folder /srv/amule/:
TempDir=/srv/amule/temp
IncomingDir=/srv/amule/incoming
OSDirectory=/srv/amule/
With the new settings, amuled throws the following message at me:
aldebaran:/srv/jail/glftpd/site# /etc/init.d/amule start
Starting amuled: amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
There is an instance of aMule already running
Raising current running instance.
aldebaran:/srv/jail/glftpd/site#
a ps -ef | grep amule right afterwards shows nothing at all.
How do I get amule to run in a different location?
Thank you very much for your help!
All the best
Mario