diff options
author | tnut <tnut at nutyx dot com> | 2012-01-08 12:15:45 +0100 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-01-08 12:15:45 +0100 |
commit | 3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch) | |
tree | 819b14ab0377fe2054fe59866669d904e9e0b4b5 /mpd/mpd | |
parent | c9972ec7f32bf9d37388e853fe9bf633e242d05a (diff) | |
download | nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2 nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip |
split de git pakxe et NuTyX-extra
Diffstat (limited to 'mpd/mpd')
-rwxr-xr-x | mpd/mpd | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mpd/mpd b/mpd/mpd new file mode 100755 index 000000000..76d4192c6 --- /dev/null +++ b/mpd/mpd @@ -0,0 +1,36 @@ +#!/bin/sh +# Begin $rc_base/init.d/mpd + +. /etc/sysconfig/rc +. $rc_functions + +pidfile=/var/run/mpd.pid + +case "$1" in + start) + boot_mesg " Lancement de MPD..." + loadproc mpd + ;; + + stop) + boot_mesg "Arret de MPD..." + if [ -f $pidfile ]; then + loadkill mpd + fi + ;; + + restart) + boot_mesg "Relancement de MPD..." + if [ -f $pidfile ]; then + loadproc mpd stop + loadproc mpd + fi + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +# End $rc_base/init.d/mpd |