#!/sbin/runscript # Distributed under the terms of the GNU General Public License v2 depend() { need net use mpd } start() { ebegin "Starting mpdas" start-stop-daemon --background --start --exec /usr/bin/mpdas \ --make-pidfile --pidfile /var/run/mpdas.pid eend $? } stop() { ebegin "Stopping mpdas" start-stop-daemon --stop --exec /usr/bin/mpdas \ --pidfile /var/run/mpdas.pid eend $? }