#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

start() {
	einfo Starting sndiod ...
	start-stop-daemon --start --pidfile /var/run/sndiod.pid \
		--background --make-pidfile \
		--exec /usr/bin/sndiod -- ${SNDIO_OPTS}
	eend $?
}

stop() {
	einfo Stopping sndiod ...
	start-stop-daemon --stop --pidfile /var/run/sndiod.pid 
	eend $?
}