You are not logged in.
Pages: 1
Howdy,
Just wondering, is there anyone that has setup amuled to start at boot? I would like to set it up to run at boot, if possible. I've done some research on the amule wiki, but can't get any real information regarding how to set it up, and what the preferred way of doing the setup would be.
Also, is there a package of amule out there that was built with amuleweb functionality? I keep trying to turn on the amuleweb function within aMule, but it tells me that I need to re-compile using the -amuleweb flag.
Thanks in advance.
Offline
Put the command you use to run it in /etc/rc.local.
As for the recompiling, go to the wiki and read about the Arch Build System (ABS).
Offline
Put the command you use to run it in /etc/rc.local.
If i start amuled this way, is there a way to specify a user account under which to run the process?
As for the recompiling, go to the wiki and read about the Arch Build System (ABS).
This worked like a charm! First time I have ever used the Arch Build System. Thanks for the advice.
Offline
tomk wrote:Put the command you use to run it in /etc/rc.local.
If i start amuled this way, is there a way to specify a user account under which to run the process?
sudo -H -u username amuled &
Offline
May be it is too late, but I have written a little initscript to run amuled as a system service: feel free to test it and report any problem. The script as it is runs amuled as user 'p2p': you obviously need to create such a user (it would be interesting to create a PKGBUILD which creates this user and includes such a script: if anyone else is interested, I can try). As an alternative, you can easily modify the script, replacing p2p with the user you like.
Please put the following in /etc/rc.d/amuled, make it executable and eventually add amuled in the correct line in /etc/rc.conf.
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/bin/amuled`
case "$1" in
start)
stat_busy "Starting amuled"
[ -z "$PID" ] && su -l p2p -c "/usr/bin/amuled &" 2&>1
if [ $? -gt 0 ]; then
stat_fail
else
echo $PID > /var/run/amuled.pid
add_daemon amuled
stat_done
fi
;;
stop)
stat_busy "Stopping amuled"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon amuled
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
Mortuus in anima, curam gero cutis
Offline
Pages: 1