#!/bin/bash # description: mt-daapd is a multi-threaded DAAP server for iTunes start() { mt-daapd } stop() { killall -INT mt-daapd } case "$1" in start) start ;; stop) stop ;; restart|reload) stop && start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac