~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/initscripts/init.d/mpd

  • Committer: Daniel Glanzmann
  • Date: 2008-09-26 17:05:28 UTC
  • mto: (1394.1.12)
  • mto: This revision was merged to the branch mainline in revision 1401.
  • Revision ID: git-v1:19ac4d1b6e234e1391b3d406381e3b74e92c40dd
added new useragent thunderbird

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 --5 /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
        restart)
 
27
                $0 stop
 
28
                sleep 3
 
29
                $0 start
 
30
                ;;
 
31
        *)
 
32
                echo "Usage: $0 (start|stop|restart|status)"
 
33
                exit 1
 
34
                ;;
 
35
esac
 
36
 
 
37
# End $rc_base/init.d/alsa