]>
Commit | Line | Data |
---|---|---|
9a6214e0 CS |
1 | #!/bin/sh |
2 | # Begin $rc_base/init.d/mpd | |
3 | ||
4 | # Based on sysklogd script from LFS-3.1 and earlier. | |
5 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org | |
6 | # ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org | |
7 | # Stores mixer settings in the default location: /etc/asound.state | |
8 | ||
9 | . /etc/sysconfig/rc | |
10 | . $rc_functions | |
11 | ||
12 | case "$1" in | |
13 | start) | |
14 | boot_mesg "Starting MPD..." | |
15 | /bin/nice --20 /usr/bin/mpd | |
16 | evaluate_retval | |
17 | ;; | |
18 | stop) | |
19 | boot_mesg "Stopping MPD..." | |
20 | /usr/bin/mpd --kill | |
21 | evaluate_retval | |
22 | ;; | |
23 | status) | |
24 | statusproc /usr/bin/mpd | |
25 | ;; | |
26 | ||
27 | *) | |
28 | echo "Usage: $0 (start|stop|status)" | |
29 | exit 1 | |
30 | ;; | |
31 | esac | |
32 | ||
33 | # End $rc_base/init.d/alsa |