You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.7 KiB
Plaintext

committing changes in /etc after apt run Package changes: +freepats 20060219-1 all +libadplug-2.2.1-0v5 2.2.1+dfsg3-0.4 armhf +libao-common 1.2.2+20180113-1 all +libao4 1.2.2+20180113-1 armhf +libaudiofile1 0.3.6-4 armhf +libavcodec58 7:4.0.2-1+b2 armhf +libavformat58 7:4.0.2-1+b2 armhf +libavutil56 7:4.0.2-1+b2 armhf +libbinio1v5 1.4+dfsg1-6 armhf +libcdio-cdda2 10.2+0.94+2-4 armhf +libcdio-paranoia2 10.2+0.94+2-4 armhf +libcdio18 2.0.0-2 armhf +libcodec2-0.8.1 0.8.1-1 armhf +libfaad2 2.8.8-1 armhf +libfluidsynth1 1.1.11-1 armhf +libid3tag0 0.15.1b-13 armhf +libiso9660-11 2.0.0-2 armhf +libjack-jackd2-0 1.9.12~dfsg-2 armhf +libjansson4 2.11-1 armhf +libldb1 2:1.4.0+really1.3.6-1 armhf +libmad0 0.15.1b-9 armhf +libmikmod3 3.3.11.1-4 armhf +libmms0 0.6.4-3 armhf +libmodplug1 1:0.8.9.0-2 armhf +libmpcdec6 2:0.1~r495-1+b1 armhf +libmpdclient2 2.13-1 armhf +libnfs11 2.0.0-1~exp1 armhf +libopenal-data 1:1.18.2-3 all +libopenal1 1:1.18.2-3+b1 armhf +libroar2 1.0~beta11-10 armhf +libsdl2-2.0-0 2.0.8+dfsg1-1+b1 armhf +libshout3 2.4.1-2 armhf +libsidplayfp4 1.8.8-1 armhf +libsmbclient 2:4.8.5+dfsg-1 armhf +libsndio7.0 1.5.0-2 armhf +libspeexdsp1 1.2~rc1.2-1 armhf -libssh-gcrypt-4 0.8.0~20170825.94fa1e38-1 armhf +libssh-gcrypt-4 0.8.1-1 armhf +libswresample3 7:4.0.2-1+b2 armhf +libtdb1 1.3.15-4 armhf +libtevent0 0.9.36-2 armhf +libupnp6 1:1.6.24-4 armhf -libwbclient0 2:4.8.2+dfsg-2 armhf +libwayland-client0 1.15.0-2 armhf +libwayland-cursor0 1.15.0-2 armhf +libwayland-egl1 1.15.0-2 armhf +libwbclient0 2:4.8.5+dfsg-1 armhf +libwildmidi-config 0.4.2-1 all +libwildmidi2 0.4.2-1 armhf +libxkbcommon0 0.8.2-1 armhf +libyajl2 2.1.0-2 armhf +libzzip-0-13 0.13.62-3.1 armhf +mpc 0.30-1 armhf +mpd 0.20.21-1 armhf +python-talloc 2.1.14-1 armhf +samba-libs 2:4.8.5+dfsg-1 armhf
6 years ago
#!/bin/sh
### BEGIN INIT INFO
# Provides: mpd
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: autofs $network $named alsa-utils pulseaudio avahi-daemon
# Should-Stop: autofs $network $named alsa-utils pulseaudio avahi-daemon
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Music Player Daemon
# Description: Start the Music Player Daemon (MPD) service
# for network access to the local audio queue.
### END INIT INFO
. /lib/lsb/init-functions
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=mpd
DESC="Music Player Daemon"
DAEMON=/usr/bin/mpd
MPDCONF=/etc/mpd.conf
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
if [ -n "$MPD_DEBUG" ]; then
set -x
MPD_OPTS=--verbose
fi
PIDFILE=$(sed -n 's/^[[:space:]]*pid_file[[:space:]]*"\?\([^"]*\)\"\?/\1/p' $MPDCONF)
mpd_start () {
log_daemon_msg "Starting $DESC" "$NAME"
if [ -z "$PIDFILE" ]; then
log_failure_msg \
"$MPDCONF must have pid_file set; cannot start daemon."
exit 1
fi
PIDDIR=$(dirname "$PIDFILE")
if [ ! -d "$PIDDIR" ]; then
mkdir -m 0755 $PIDDIR
if dpkg-statoverride --list --quiet /run/mpd > /dev/null; then
# if dpkg-statoverride is used update it with permissions there
dpkg-statoverride --force --quiet --update --add $( dpkg-statoverride --list --quiet /run/mpd ) 2> /dev/null
else
# use defaults
chown mpd:audio $PIDDIR
fi
fi
start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" \
--exec "$DAEMON" -- $MPD_OPTS "$MPDCONF"
log_end_msg $?
}
mpd_stop () {
if [ -z "$PIDFILE" ]; then
log_failure_msg \
"$MPDCONF must have pid_file set; cannot stop daemon."
exit 1
fi
log_daemon_msg "Stopping $DESC" "$NAME"
start-stop-daemon --stop --quiet --oknodo --retry 5 --pidfile "$PIDFILE" \
--exec $DAEMON
log_end_msg $?
}
# note to self: don't call the non-standard args for this in
# {post,pre}{inst,rm} scripts since users are not forced to upgrade
# /etc/init.d/mpd when mpd is updated
case "$1" in
start)
mpd_start
;;
stop)
mpd_stop
;;
status)
status_of_proc -p $PIDFILE $DAEMON $NAME
;;
restart|force-reload)
mpd_stop
mpd_start
;;
force-start)
mpd_start
;;
force-restart)
mpd_stop
mpd_start
;;
force-reload)
mpd_stop
mpd_start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 2
;;
esac