mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-05 00:55:44 +01:00
35 lines
571 B
Bash
35 lines
571 B
Bash
#!/bin/sh
|
|
#
|
|
# mt-daapd iTunes music server daemon.
|
|
#
|
|
|
|
start() {
|
|
if [ -x /usr/sbin/mt-daapd ]; then
|
|
echo "Starting mt-daapd iTunes server: /usr/sbin/mt-daapd"
|
|
/usr/sbin/mt-daapd -c /etc/mt-daapd.conf 2> /dev/null
|
|
sleep 1
|
|
fi
|
|
}
|
|
|
|
stop() {
|
|
echo "Killing mt-daapd iTunes server... "
|
|
killall /usr/sbin/mt-daapd 2> /dev/null
|
|
}
|
|
|
|
# How to call it.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart)
|
|
stop
|
|
sleep 1
|
|
start
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart}"
|
|
;;
|
|
esac
|