start-stop-daemon takes care of a lot of common house keeping features and helps integrate better with openrc. it would also avoid the need for the non-portable `sleep` usage currently found in stop(). start() { checkconfig || return 1 ebegin "Starting Music Player Daemon" start-stop-daemon --start --quiet --exec /usr/bin/mpd --pidfile /var/run/mpd.pid -- /etc/mpd.conf eend $? } stop() { ebegin "Stopping Music Player Daemon" start-stop-daemon --stop --exec /usr/bin/mpd --pidfile /var/run/mpd.pid eend $? }
+ 06 Sep 2010; <angelos@gentoo.org> +mpd-0.15.12-r1.ebuild, + +files/mpd.conf.patch, +files/mpd.init: + Tweak default pid/log paths (bug #331723), fix init script dependencies + (bug #331725), reduce init script noise (bug #331727) and convert init + script to s-s-d (bug #331729)
Doesn't seem to work as expected here Phoenix ~ # /etc/init.d/mpd restart * Starting Music Player Daemon ... [ ok ] Phoenix ~ # /etc/init.d/mpd restart * Stopping Music Player Daemon ... * start-stop-daemon: no matching processes found [ ok ] * Starting Music Player Daemon ... [ ok ] Phoenix ~ #
OK ignore me. Was an error on my end