--- /dev/null
+#!/bin/sh -e
+
+DAEMON=/usr/bin/nowplayingd
+DSMETOOL=/usr/sbin/dsmetool
+DSMETOOL_PARAMETERS="-t"
+
+if [ -x $DAEMON ]; then
+ echo "Starting nowplayingd..."
+ $DSMETOOL $DSMETOOL_PARAMETERS $DAEMON
+fi
--- /dev/null
+#!/bin/sh -e
+
+if [ -f /etc/X11/Xsession.d/99nowplayingd ]; then
+ rm -f /etc/X11/Xsession.d/99nowplayingd || true
+fi
--- /dev/null
+#!/bin/sh
+
+DAEMON=/usr/bin/nowplayingd
+DSMETOOL=/usr/sbin/dsmetool
+DSMETOOL_PARAMETERS="-k"
+
+if [ -x $DAEMON ]; then
+ echo "Stopping nowplayingd..."
+ $DSMETOOL $DSMETOOL_PARAMETERS $DAEMON || true
+fi