Here’s the /etc/rc.d/rc.mt-daapd script i wrote.
#!/bin/bash
#
# /etc/rc.d/rc.mt-daapd
# slackware mt-daapd startup script
# written by Chris Haynie chris[at]chrishaynie.com
# May 09, 2006
#
# place in your /etc/rc.d directory, and chmod +x
# then add the following to your /etc/rc.d/rc.local
#
# if [ -x /etc/rc.d/rc.mt-daapd ];then
# . /etc/rc.d/rc.mt-daapd start
# fi
#
start() {
echo “Starting mt-daapd …”
/usr/local/sbin/mt-daapd
}
stop() {
echo “Stopping mt-daapd …”
killall mt-daapd
}
case “$1” in
‘start’)
start
;;
‘stop’)
stop
;;
‘restart’)
echo “Restarting mt-daapd…”
stop
start
;;
*)
echo “Usage $0 start|restart|stop”
exit 1
;;
esac
Post edited by: Sax, at: 2006/05/10 03:53