2011-07-29, 05:34
Had no problems running this on Arch Linux. Cloned it from git and it started right up. Anyway you can add support for Newzbin.com as a search provider?
Also if anyone is interested here's the script I'm using to start Headphones as a daemon.
Also if anyone is interested here's the script I'm using to start Headphones as a daemon.
Code:
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting Headphones"
if [ -f /var/run/daemons/headphones ]; then
echo -n "Headphones is already running as a daemon!"
stat_fail
else
su - [USER] -c "python2 /opt/headphones/Headphones.py &> /dev/null &" -s /bin/sh
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon headphones
stat_done
fi
fi
;;
stop)
stat_busy "Stopping Headphones"
curl -f http://localhost:8181/shutdown/ &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon headphones
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0