In the mpd init script,in the restart case,it first started then stopped.
Thanks to jconnolly for having noticed that it didn't restart at all
DEPENDS = "libvorbis libogg libao-alsa zlib libmikmod flac audiofile virtual/libiconv \
${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}"
RDEPENDS = "libao-alsa"
-PR = "r4"
+PR = "r5"
SRC_URI = "${SOURCEFORGE_MIRROR}/musicpd/mpd-${PV}.tar.gz \
file://mpd/save-volume-state.patch;patch=1 file://mpd/mpd.init"
file://mpd/mpd.conf \
file://mpd/mpd.init"
-PR = "r3"
+PR = "r4"
S = "${WORKDIR}/mpd-${PV}"
inherit autotools update-rc.d
;;
restart|force-reload)
echo -n "Restarting music player daemon: mpd"
- start-stop-daemon --start --quiet --exec /usr/bin/mpd
- sleep 2
start-stop-daemon --stop --quiet --exec /usr/bin/mpd
+ sleep 2
+ start-stop-daemon --start --quiet --exec /usr/bin/mpd
echo "."
;;
*)
file://mpd/mpd.conf \
file://mpd/mpd.init"
-PR = "r4"
+PR = "r5"
inherit autotools update-rc.d
INITSCRIPT_NAME = "mpd"
inherit autotools update-rc.d
INITSCRIPT_NAME = "mpd"
+PR = "r1"
+
# Setting --enable-mpd-{mad,id3tag} causes local caches of the libraries to
# be built, instead we use the OE built versions which should be installed
# in staging - remove the --with and replace with --enable to use the local